From 09f6337930a5686f91dd174fd22356966d4e584a Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 17 Jul 2015 22:45:35 +0200 Subject: make likes/dislikes work again --- mod/like.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/like.php') diff --git a/mod/like.php b/mod/like.php index ffd302efa..9077adbda 100755 --- a/mod/like.php +++ b/mod/like.php @@ -242,8 +242,8 @@ function like_content(&$a) { // get the item. Allow linked photos (which are normally hidden) to be liked $r = q("SELECT * FROM item WHERE id = %d - and item_blocked = 0 and item_moderated = 0 and item_spam = 0 - and item_deleted = 0 and item_unpublished = 0 and item_delayed_publish = 0 LIMIT 1", + and item_type = 0 and item_deleted = 0 and item_unpublished = 0 + and item_delayed = 0 and item_pending_remove = 0 and item_blocked = 0 LIMIT 1", intval($item_id) ); -- cgit v1.2.3