From: Hank Grabowski Date: Mon, 21 Nov 2022 21:38:54 +0000 (-0500) Subject: The two endpoints for unfavoriting/liking (and related things) was failing because... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=548fd3201d7da8b790cfe1681472b7fc83216124;p=friendica.git The two endpoints for unfavoriting/liking (and related things) was failing because it wasn't using the correct uuid in item.php in processing the action. --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 7c8804a290..5271dcefaa 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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)) {