aboutsummaryrefslogtreecommitdiffstats
path: root/mod/like.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/like.php')
-rwxr-xr-xmod/like.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/like.php b/mod/like.php
index 47251935a..dc4531fbb 100755
--- a/mod/like.php
+++ b/mod/like.php
@@ -303,7 +303,6 @@ function like_content(&$a) {
$multi_undo = 1;
}
-
$r = q("SELECT id FROM item WHERE verb in ( $verbs ) AND item_restrict = 0
AND author_xchan = '%s' AND ( parent = %d OR thr_parent = '%s') and uid = %d ",
dbesc($observer['xchan_hash']),
@@ -316,10 +315,12 @@ function like_content(&$a) {
// already liked it. Drop that item.
require_once('include/items.php');
foreach($r as $rr) {
- drop_item($rr['id'],true,DROPITEM_PHASE1);
+ drop_item($rr['id'],false,DROPITEM_PHASE1);
}
+
if($interactive)
return;
+
if(! $multi_undo)
killme();
}