duplicated code
This commit is contained in:
parent
d3ee99d677
commit
a6a2c02b6a
@ -508,14 +508,6 @@ function like_content(&$a) {
|
|||||||
dbesc(($tgttype)? $tgttype : $objtype),
|
dbesc(($tgttype)? $tgttype : $objtype),
|
||||||
dbesc($obj_id)
|
dbesc($obj_id)
|
||||||
);
|
);
|
||||||
$r = q("select * from likes where liker = '%s' and likee = '%s' and i_mid = '%s' and verb = '%s' and target_type = '%s' and target_id = '%s' ",
|
|
||||||
dbesc($observer['xchan_hash']),
|
|
||||||
dbesc($ch[0]['channel_hash']),
|
|
||||||
dbesc($mid),
|
|
||||||
dbesc($activity),
|
|
||||||
dbesc(($tgttype)? $tgttype : $objtype),
|
|
||||||
dbesc($obj_id)
|
|
||||||
);
|
|
||||||
if($r)
|
if($r)
|
||||||
build_sync_packet($ch[0]['channel_id'],array('likes' => $r));
|
build_sync_packet($ch[0]['channel_id'],array('likes' => $r));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user