]> git.mxchange.org Git - friendica.git/commitdiff
Fix unliking liked
authorMichael <heluecht@pirati.ca>
Wed, 4 Jul 2018 19:07:53 +0000 (19:07 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 4 Jul 2018 19:07:53 +0000 (19:07 +0000)
src/Model/Item.php

index 04374088d7d4d408d358ed577e5dd1bd24458738..ac53bb0220804fc756fa9a2ad5e4a006995886f9 100644 (file)
@@ -2695,7 +2695,7 @@ class Item extends BaseObject
                }
 
                $base_condition = ['verb' => $verbs, 'deleted' => false, 'gravity' => GRAVITY_ACTIVITY,
-                       'author-id' => $author_contact['id'], 'uid' => item['uid']];
+                       'author-id' => $author_contact['id'], 'uid' => $item['uid']];
 
                $condition = array_merge($base_condition, ['parent' => $item_id]);
                $like_item = self::selectFirst(['id', 'guid', 'verb'], $condition);