Notifications for participation added

This commit is contained in:
Michael 2022-01-24 04:49:13 +00:00
parent e4887d23d2
commit 564517607f
2 changed files with 46 additions and 10 deletions

View file

@ -140,7 +140,7 @@ class Notification extends BaseFactory implements ICanCreateFromTableRow
$title = '';
}
$this->logger->debug('Got verb and type', ['verb' => $Notification->verb, 'type' => $Notification->type]);
$this->logger->info('Got verb and type', ['verb' => $Notification->verb, 'type' => $Notification->type]);
switch ($Notification->verb) {
case Activity::LIKE:
@ -184,6 +184,27 @@ class Notification extends BaseFactory implements ICanCreateFromTableRow
break;
}
break;
case Activity::ATTEND:
switch ($Notification->type) {
case Post\UserNotification::TYPE_DIRECT_THREAD_COMMENT:
$msg = $userL10n->t('%1$s wants to attend your event %2$s');
break;
}
break;
case Activity::ATTENDNO:
switch ($Notification->type) {
case Post\UserNotification::TYPE_DIRECT_THREAD_COMMENT:
$msg = $userL10n->t('%1$s does not want to attend your event %2$s');
break;
}
break;
case Activity::ATTENDMAYBE:
switch ($Notification->type) {
case Post\UserNotification::TYPE_DIRECT_THREAD_COMMENT:
$msg = $userL10n->t('%1$s maybe wants to attends your event %2$s');
break;
}
break;
case Activity::POST:
switch ($Notification->type) {
case Post\UserNotification::TYPE_EXPLICIT_TAGGED: