diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-08-31 20:55:25 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-08-31 20:55:25 -0700 |
commit | d7cf7316beaecc6efacc01d56dbb066af8174416 (patch) | |
tree | 49a556c5055a0c75646e53ffb867da4aec08496e /mod/like.php | |
parent | 96c61fc5f26af06bf43ecae0819c095141e18db7 (diff) | |
download | volse-hubzilla-d7cf7316beaecc6efacc01d56dbb066af8174416.tar.gz volse-hubzilla-d7cf7316beaecc6efacc01d56dbb066af8174416.tar.bz2 volse-hubzilla-d7cf7316beaecc6efacc01d56dbb066af8174416.zip |
change the likes db structure to make it more easily importable/exportable
Diffstat (limited to 'mod/like.php')
-rwxr-xr-x | mod/like.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/like.php b/mod/like.php index e79ff5f48..8789b7633 100755 --- a/mod/like.php +++ b/mod/like.php @@ -473,11 +473,12 @@ function like_content(&$a) { if($extended_like) { - $r = q("insert into likes (channel_id,liker,likee,iid,verb,target_type,target_id,target) values (%d,'%s','%s',%d,'%s','%s','%s','%s')", + $r = q("insert into likes (channel_id,liker,likee,iid,i_mid,verb,target_type,target_id,target) values (%d,'%s','%s',%d,'%s','%s','%s','%s','%s')", intval($ch[0]['channel_id']), dbesc($observer['xchan_hash']), dbesc($ch[0]['channel_hash']), intval($post_id), + dbesc($mid), dbesc($activity), dbesc(($tgttype)?$tgttype:$objtype), dbesc($obj_id), |