decentralise likes of things so they can be cloned
This commit is contained in:
parent
db58b62235
commit
f2889d24e6
15
mod/like.php
15
mod/like.php
@ -222,10 +222,17 @@ function like_content(&$a) {
|
|||||||
q("delete from likes where id = %d limit 1",
|
q("delete from likes where id = %d limit 1",
|
||||||
intval($z[0]['id'])
|
intval($z[0]['id'])
|
||||||
);
|
);
|
||||||
drop_item($z[0]['iid'],false);
|
if($z[0]['i_mid']) {
|
||||||
if($interactive) {
|
$r = q("select id from item where mid = '%s' and uid = %d limit 1",
|
||||||
notice( t('Previous action reversed.') . EOL);
|
dbesc($z[0]['i_mid']),
|
||||||
return $o;
|
intval($ch[0]['channel_id'])
|
||||||
|
);
|
||||||
|
if($r)
|
||||||
|
drop_item($r[0]['id'],false);
|
||||||
|
if($interactive) {
|
||||||
|
notice( t('Previous action reversed.') . EOL);
|
||||||
|
return $o;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user