mirror of
https://github.com/friendica/friendica
synced 2025-05-05 23:04:09 +02:00
Move mod/fsuggest to src/Module/SuggestFriends
This commit is contained in:
parent
4ab893a561
commit
34f4aedb87
9 changed files with 236 additions and 7 deletions
|
@ -70,12 +70,12 @@ class Notifier
|
|||
'APDelivery', $cmd, $target_id, $inbox, $uid);
|
||||
}
|
||||
} elseif ($cmd == Delivery::SUGGESTION) {
|
||||
$suggest = DBA::selectFirst('fsuggest', ['uid', 'cid'], ['id' => $target_id]);
|
||||
if (!DBA::isResult($suggest)) {
|
||||
$suggest = DI::fsuggest()->getById($target_id);
|
||||
if (empty($suggest)) {
|
||||
return;
|
||||
}
|
||||
$uid = $suggest['uid'];
|
||||
$recipients[] = $suggest['cid'];
|
||||
$uid = $suggest->uid;
|
||||
$recipients[] = $suggest->cid;
|
||||
} elseif ($cmd == Delivery::REMOVAL) {
|
||||
return self::notifySelfRemoval($target_id, $a->queue['priority'], $a->queue['created']);
|
||||
} elseif ($cmd == Delivery::RELOCATION) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue