mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 10:35:15 +00:00
Merge https://github.com/redmatrix/redmatrix into pending_merge
Conflicts: mod/like.php
This commit is contained in:
commit
d3ee99d677
1 changed files with 8 additions and 0 deletions
|
@ -508,6 +508,14 @@ function like_content(&$a) {
|
|||
dbesc(($tgttype)? $tgttype : $objtype),
|
||||
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)
|
||||
build_sync_packet($ch[0]['channel_id'],array('likes' => $r));
|
||||
|
||||
|
|
Loading…
Reference in a new issue