mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:10:12 +00:00
Notifications for participation added
This commit is contained in:
parent
e4887d23d2
commit
564517607f
2 changed files with 46 additions and 10 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue