diff options
Diffstat (limited to 'mod/like.php')
-rwxr-xr-x | mod/like.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/like.php b/mod/like.php index 90005eca3..84b0a6592 100755 --- a/mod/like.php +++ b/mod/like.php @@ -100,7 +100,7 @@ function like_content(&$a) { $mid = item_message_id(); - $post_type = (($item['resource_type'] === 'photo') ? $t('photo') : t('status')); + $post_type = (($item['resource_type'] === 'photo') ? t('photo') : t('status')); $links = array(array('rel' => 'alternate','type' => 'text/html', 'href' => $item['plink'])); $objtype = (($item['resource_type'] === 'photo') ? ACTIVITY_OBJ_PHOTO : ACTIVITY_OBJ_NOTE ); @@ -171,7 +171,8 @@ function like_content(&$a) { $arr['deny_cid'] = $item['deny_cid']; $arr['deny_gid'] = $item['deny_gid']; - $post_id = item_store($arr); + $post = item_store($arr); + $post_id = $post['item_id']; $arr['id'] = $post_id; |