Merge pull request #5323 from annando/unlike

Fix unliking liked
This commit is contained in:
Hypolite Petovan 2018-07-04 15:18:19 -04:00 committed by GitHub
commit 0d48acfd17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2695,7 +2695,7 @@ class Item extends BaseObject
} }
$base_condition = ['verb' => $verbs, 'deleted' => false, 'gravity' => GRAVITY_ACTIVITY, $base_condition = ['verb' => $verbs, 'deleted' => false, 'gravity' => GRAVITY_ACTIVITY,
'author-id' => $author_contact['id'], 'uid' => item['uid']]; 'author-id' => $author_contact['id'], 'uid' => $item['uid']];
$condition = array_merge($base_condition, ['parent' => $item_id]); $condition = array_merge($base_condition, ['parent' => $item_id]);
$like_item = self::selectFirst(['id', 'guid', 'verb'], $condition); $like_item = self::selectFirst(['id', 'guid', 'verb'], $condition);