change the likes db structure to make it more easily importable/exportable

This commit is contained in:
redmatrix
2015-08-31 20:55:25 -07:00
parent 96c61fc5f2
commit d7cf7316be
8 changed files with 282 additions and 258 deletions

View File

@@ -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),