diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-10 19:20:21 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-10 19:20:21 -0700 |
commit | d3ee99d677cde851ac26fb7505b5aebdd270bf04 (patch) | |
tree | 52860bd9a16e269613c40c48d2f78037719be259 /mod/like.php | |
parent | 4abfd4053a955a70c461290b7220145d2ce1a861 (diff) | |
parent | 05e0ed51736a2a49e36b535ef5d669e4172cf786 (diff) | |
download | volse-hubzilla-d3ee99d677cde851ac26fb7505b5aebdd270bf04.tar.gz volse-hubzilla-d3ee99d677cde851ac26fb7505b5aebdd270bf04.tar.bz2 volse-hubzilla-d3ee99d677cde851ac26fb7505b5aebdd270bf04.zip |
Merge https://github.com/redmatrix/redmatrix into pending_merge
Conflicts:
mod/like.php
Diffstat (limited to 'mod/like.php')
-rwxr-xr-x | mod/like.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/like.php b/mod/like.php index ce8bc3063..6e9df7ede 100755 --- a/mod/like.php +++ b/mod/like.php @@ -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)); |