Merge branch 'notify-shared' of github.com:annando/friendica into notify-shared
This commit is contained in:
commit
0e2dbd8fa3
|
@ -207,12 +207,12 @@ class UserItem
|
|||
*/
|
||||
private static function checkShared(array $item, int $uid)
|
||||
{
|
||||
// Only sheck on starting posts and reshare ("announce") activities, otherwise return
|
||||
// Only check on original posts and reshare ("announce") activities, otherwise return
|
||||
if (($item['gravity'] != GRAVITY_PARENT) && ($item['verb'] != Activity::ANNOUNCE)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if the contact had posted or shared something directly
|
||||
// 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 New Issue
Block a user