From 8d8b6b1bf5e08a7599f78ecc98f1ea0bed3b39b6 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 12 Aug 2020 18:18:45 +0200 Subject: [PATCH 1/2] Update src/Model/UserItem.php Co-authored-by: Hypolite Petovan --- src/Model/UserItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/UserItem.php b/src/Model/UserItem.php index 11446f6e8..144ad46eb 100644 --- a/src/Model/UserItem.php +++ b/src/Model/UserItem.php @@ -207,7 +207,7 @@ 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; } From d331a88adca8a3ed20d0a7936271edbd3c56c7ef Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 12 Aug 2020 18:19:02 +0200 Subject: [PATCH 2/2] Update src/Model/UserItem.php Co-authored-by: Hypolite Petovan --- src/Model/UserItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/UserItem.php b/src/Model/UserItem.php index 144ad46eb..4e4ca6c94 100644 --- a/src/Model/UserItem.php +++ b/src/Model/UserItem.php @@ -212,7 +212,7 @@ class UserItem 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; }