diff options
author | friendica <info@friendica.com> | 2015-03-21 17:14:12 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-03-21 17:14:12 -0700 |
commit | 1b17b0193ec08936b5485216ba6bbe9a46ede187 (patch) | |
tree | ab92c372b4d565dc3064ddfdda2efb9cf6be534e /mod/like.php | |
parent | b298bc8834eb58f202f6cd30d857ef450bf826b4 (diff) | |
download | volse-hubzilla-1b17b0193ec08936b5485216ba6bbe9a46ede187.tar.gz volse-hubzilla-1b17b0193ec08936b5485216ba6bbe9a46ede187.tar.bz2 volse-hubzilla-1b17b0193ec08936b5485216ba6bbe9a46ede187.zip |
fix multiple vote issues
Diffstat (limited to 'mod/like.php')
-rwxr-xr-x | mod/like.php | 5 |
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(); } |