From 548fd3201d7da8b790cfe1681472b7fc83216124 Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Mon, 21 Nov 2022 16:38:54 -0500 Subject: [PATCH] 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. --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 7c8804a29..5271dcefa 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)) {