From f60da34357b93a0dfa18bd49856f56eb9bdfd160 Mon Sep 17 00:00:00 2001
From: Michael <heluecht@pirati.ca>
Date: Wed, 4 Jul 2018 19:07:53 +0000
Subject: [PATCH] Fix unliking liked

---
 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 04374088d..ac53bb022 100644
--- a/src/Model/Item.php
+++ b/src/Model/Item.php
@@ -2695,7 +2695,7 @@ class Item extends BaseObject
 		}
 
 		$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]);
 		$like_item = self::selectFirst(['id', 'guid', 'verb'], $condition);