aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-19 09:11:31 +1000
committerredmatrix <redmatrix@redmatrix.me>2015-07-19 09:11:31 +1000
commite62a4b1bc9ee5019490eb6c093824017c2d462be (patch)
tree1577461bbb2dad5688327666d1f35854c373c75e
parent4299ae65a4ec406bbd932e0948197c5127a57b3b (diff)
parent09f6337930a5686f91dd174fd22356966d4e584a (diff)
downloadvolse-hubzilla-e62a4b1bc9ee5019490eb6c093824017c2d462be.tar.gz
volse-hubzilla-e62a4b1bc9ee5019490eb6c093824017c2d462be.tar.bz2
volse-hubzilla-e62a4b1bc9ee5019490eb6c093824017c2d462be.zip
Merge pull request #20 from git-marijus/master
make likes/dislikes work again
-rwxr-xr-xmod/like.php4
1 files changed, 2 insertions, 2 deletions
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)
);