]> git.mxchange.org Git - friendica.git/commitdiff
The two endpoints for unfavoriting/liking (and related things) was failing because...
authorHank Grabowski <hankgrabowski@gmail.com>
Mon, 21 Nov 2022 21:38:54 +0000 (16:38 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Nov 2022 21:49:20 +0000 (16:49 -0500)
src/Model/Item.php

index 7c8804a290be279e774094b76378de2f46324628..5271dcefaab3cdb2c170a8a6034ad7c04939ec36 100644 (file)
@@ -2693,7 +2693,7 @@ class Item
                }
 
                $condition = ['vid' => $vids, 'deleted' => false, 'gravity' => self::GRAVITY_ACTIVITY,
-                       'author-id' => $author_id, 'uid' => $item['uid'], 'thr-parent-id' => $uri_id];
+                       'author-id' => $author_id, 'uid' => $uid, 'thr-parent-id' => $uri_id];
                $like_item = Post::selectFirst(['id', 'guid', 'verb'], $condition);
 
                if (DBA::isResult($like_item)) {