Merge pull request #12231 from HankG/fix-unfavourite-endpoint
Fix unfavourite (and related) endpoints
This commit is contained in:
commit
6bf5c344f5
1 changed files with 1 additions and 1 deletions
|
@ -2693,7 +2693,7 @@ class Item
|
||||||
}
|
}
|
||||||
|
|
||||||
$condition = ['vid' => $vids, 'deleted' => false, 'gravity' => self::GRAVITY_ACTIVITY,
|
$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);
|
$like_item = Post::selectFirst(['id', 'guid', 'verb'], $condition);
|
||||||
|
|
||||||
if (DBA::isResult($like_item)) {
|
if (DBA::isResult($like_item)) {
|
||||||
|
|
Loading…
Reference in a new issue