mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Create constants for Mastodon notification types
This commit is contained in:
parent
ea6f7aba40
commit
3e6fea30f2
7 changed files with 59 additions and 49 deletions
|
@ -49,15 +49,6 @@ class Notification extends BaseFactory
|
|||
if (!$this->dba->isResult($notification)) {
|
||||
return null;
|
||||
}
|
||||
/*
|
||||
follow = Someone followed you
|
||||
follow_request = Someone requested to follow you
|
||||
mention = Someone mentioned you in their status
|
||||
reblog = Someone boosted one of your statuses
|
||||
favourite = Someone favourited one of your statuses
|
||||
poll = A poll you have voted in or created has ended
|
||||
status = Someone you enabled notifications for has posted a status
|
||||
*/
|
||||
|
||||
$type = ModelNotification::getType($notification);
|
||||
if (empty($type)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue