mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 17:44:27 +02:00
Merge remote-tracking branch 'upstream/develop' into quote
This commit is contained in:
commit
eae1383f48
5 changed files with 12 additions and 21 deletions
|
@ -83,7 +83,10 @@ class Notification extends BaseFactory
|
|||
public static function getType(Entity\Notification $Notification): string
|
||||
{
|
||||
if (($Notification->verb == Activity::FOLLOW) && ($Notification->type === Post\UserNotification::TYPE_NONE)) {
|
||||
$contact = Contact::getById($Notification->actorId, ['pending']);
|
||||
$contact = Contact::getById($Notification->actorId, ['pending', 'uri-id', 'uid']);
|
||||
if (($contact['uid'] == 0) && !empty($contact['uri-id'])) {
|
||||
$contact = Contact::selectFirst(['pending'], ['uri-id' => $contact['uri-id'], 'uid' => $Notification->uid]);
|
||||
}
|
||||
$type = $contact['pending'] ? MstdnNotification::TYPE_INTRODUCTION : MstdnNotification::TYPE_FOLLOW;
|
||||
} elseif (($Notification->verb == Activity::ANNOUNCE) &&
|
||||
in_array($Notification->type, [Post\UserNotification::TYPE_DIRECT_COMMENT, Post\UserNotification::TYPE_DIRECT_THREAD_COMMENT])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue