1
0
Fork 0

Merge pull request #12231 from HankG/fix-unfavourite-endpoint

Fix unfavourite (and related) endpoints
This commit is contained in:
Hypolite Petovan 2022-11-21 16:51:43 -05:00 committed by GitHub
commit 6bf5c344f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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)) {