mirror of
https://github.com/friendica/friendica
synced 2024-12-23 02:40:17 +00:00
Issue 12285: Show sharing notification only once
This commit is contained in:
parent
04945f9c98
commit
5e176b52a5
1 changed files with 6 additions and 0 deletions
|
@ -440,6 +440,12 @@ class UserNotification
|
|||
}
|
||||
}
|
||||
|
||||
// Only check on posts by the user itself
|
||||
$cdata = Contact::getPublicAndUserContactID($item['contact-id'], $item['uid']);
|
||||
if (empty($cdata['user']) || ($item['author-id'] != $cdata['public'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if the contact posted or shared something directly
|
||||
if (DBA::exists('contact', ['id' => $item['contact-id'], 'notify_new_posts' => true])) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue