schema fixes

This commit is contained in:
zotlabs
2017-05-22 00:57:56 -07:00
committed by Mario Vavti
parent 50c9aec436
commit 3a9e5f0f98
2 changed files with 7 additions and 3 deletions

View File

@@ -373,6 +373,10 @@ class Like extends \Zotlabs\Web\Controller {
$links = array(array('rel' => 'alternate','type' => 'text/html', 'href' => $item['plink']));
$objtype = (($item['resource_type'] === 'photo') ? ACTIVITY_OBJ_PHOTO : ACTIVITY_OBJ_NOTE );
if($objtype === ACTIVITY_OBJ_NOTE && (! intval($item['item_thread_top'])))
$objtype = ACTIVITY_OBJ_COMMENT;
$body = $item['body'];