Merge branch 'notify-shared' of github.com:annando/friendica into notify-shared

This commit is contained in:
Michael 2020-08-13 05:17:43 +00:00
commit 0e2dbd8fa3

View file

@ -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;
}