mirror of
https://github.com/friendica/friendica
synced 2024-11-13 00:22:59 +00:00
Notifications for non contacts
This commit is contained in:
parent
8034a48ffe
commit
df9ed6af0e
1 changed files with 2 additions and 2 deletions
|
@ -398,13 +398,13 @@ function item_post(App $a) {
|
||||||
|
|
||||||
// Search for forum mentions
|
// Search for forum mentions
|
||||||
foreach (Tag::getFromBody($body, Tag::TAG_CHARACTER[Tag::MENTION] . Tag::TAG_CHARACTER[Tag::EXCLUSIVE_MENTION]) as $tag) {
|
foreach (Tag::getFromBody($body, Tag::TAG_CHARACTER[Tag::MENTION] . Tag::TAG_CHARACTER[Tag::EXCLUSIVE_MENTION]) as $tag) {
|
||||||
$contact = Contact::getByURL($tag[2], false, [], $profile_uid);
|
$contact = Contact::getByURLForUser($tag[2], $profile_uid);
|
||||||
if (!empty($inform)) {
|
if (!empty($inform)) {
|
||||||
$inform .= ',';
|
$inform .= ',';
|
||||||
}
|
}
|
||||||
$inform .= 'cid:' . $contact['id'];
|
$inform .= 'cid:' . $contact['id'];
|
||||||
|
|
||||||
if (!$toplevel_item_id || ($contact['contact-type'] != Contact::TYPE_COMMUNITY)) {
|
if (!$toplevel_item_id || empty($contact['cid']) || ($contact['contact-type'] != Contact::TYPE_COMMUNITY)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue