if ($occur->Event->user_id != $visitor->user_id)
{
$alertRepo = \XF::repository('XF:UserAlert');
if ($rsvp->rsvp_state == 'y')
{
$alertRepo->alertFromUser($occur->Event->User, $visitor, 'ewr_atendo_occur', $occur->occur_id, 'rsvp');
}
else
{
$alertRepo->fastDeleteAlertsFromUser($visitor->user_id, 'ewr_atendo_occur', $occur->occur_id, 'rsvp');
}
}
I fixed it.Looks about right, though the first two arguments of alertFromUser expect user entities. It looks like the first argument of your alertFromUser line is just a user ID.
Receive an alert when someone…
An event you are attending begins in less than 7 days
That sounds awful...Unfortunately not, it likely needs a bit of creativity. Something like...
Receive an alert when someone... is hosting an event you are attending in less than 7 days.
We use essential cookies to make this site work, and optional cookies to enhance your experience.