aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-22 00:57:56 -0700
committerzotlabs <mike@macgirvin.com>2017-05-22 00:57:56 -0700
commit36a960adec9f216463890640340324d6d37a65d0 (patch)
tree8466d8490078e2cfc5f863ff0b93e2013e1926a2 /Zotlabs/Module
parent07ee4984cbdb3fa59441792a23c1cf3fc4151936 (diff)
downloadvolse-hubzilla-36a960adec9f216463890640340324d6d37a65d0.tar.gz
volse-hubzilla-36a960adec9f216463890640340324d6d37a65d0.tar.bz2
volse-hubzilla-36a960adec9f216463890640340324d6d37a65d0.zip
schema fixes
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Like.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php
index 5ce8ec7f0..71336e8f3 100644
--- a/Zotlabs/Module/Like.php
+++ b/Zotlabs/Module/Like.php
@@ -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'];