aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-21 17:14:12 -0700
committerfriendica <info@friendica.com>2015-03-21 17:14:12 -0700
commit1b17b0193ec08936b5485216ba6bbe9a46ede187 (patch)
treeab92c372b4d565dc3064ddfdda2efb9cf6be534e
parentb298bc8834eb58f202f6cd30d857ef450bf826b4 (diff)
downloadvolse-hubzilla-1b17b0193ec08936b5485216ba6bbe9a46ede187.tar.gz
volse-hubzilla-1b17b0193ec08936b5485216ba6bbe9a46ede187.tar.bz2
volse-hubzilla-1b17b0193ec08936b5485216ba6bbe9a46ede187.zip
fix multiple vote issues
-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();
}