mirror of
https://github.com/friendica/friendica
synced 2025-04-25 04:30:11 +00:00
Rrepeat comments as well
This commit is contained in:
parent
1b6b6bcc6d
commit
234dac49b4
3 changed files with 40 additions and 38 deletions
|
@ -182,6 +182,11 @@ class UserNotification
|
|||
return;
|
||||
}
|
||||
|
||||
$author = Contact::getById($item['author-id'], ['contact-type']);
|
||||
if (empty($author)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$notification_type = self::TYPE_NONE;
|
||||
|
||||
if (self::checkShared($item, $uid)) {
|
||||
|
@ -232,7 +237,7 @@ class UserNotification
|
|||
}
|
||||
}
|
||||
|
||||
if (self::checkDirectCommentedThread($item, $contacts)) {
|
||||
if (($contact['contact-type'] != Contact::TYPE_COMMUNITY) && self::checkDirectCommentedThread($item, $contacts)) {
|
||||
$notification_type = $notification_type | self::TYPE_DIRECT_THREAD_COMMENT;
|
||||
if (!$notified) {
|
||||
self::insertNotificationByItem(self::TYPE_DIRECT_THREAD_COMMENT, $uid, $item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue