aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-01-09 22:12:44 -0800
committerzotlabs <mike@macgirvin.com>2017-01-09 22:12:44 -0800
commit120afb30c15b3d3f3e68a56b4a70dfc1891e83fc (patch)
tree6f91f69749dc07ac1cbd979a11802789ae137c3d
parent47bc573de56b2f9c18670c72d9a43678caa3ced0 (diff)
downloadvolse-hubzilla-120afb30c15b3d3f3e68a56b4a70dfc1891e83fc.tar.gz
volse-hubzilla-120afb30c15b3d3f3e68a56b4a70dfc1891e83fc.tar.bz2
volse-hubzilla-120afb30c15b3d3f3e68a56b4a70dfc1891e83fc.zip
obj_type on edit activity was wrong
-rw-r--r--Zotlabs/Module/Item.php2
-rwxr-xr-xinclude/items.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index 7f2813076..d2c16ad0f 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -733,7 +733,7 @@ class Item extends \Zotlabs\Web\Controller {
$thr_parent = $mid;
$datarray = array();
-
+
$item_thread_top = ((! $parent) ? 1 : 0);
if ((! $plink) && ($item_thread_top)) {
diff --git a/include/items.php b/include/items.php
index 57a9022da..f7d8691cc 100755
--- a/include/items.php
+++ b/include/items.php
@@ -4463,9 +4463,9 @@ function item_create_edit_activity($post) {
$new_item['verb'] = ACTIVITY_UPDATE;
$new_item['item_thread_top'] = 0;
$new_item['created'] = $new_item['edited'] = datetime_convert();
-
+ $new_item['obj_type'] = (($update_item['item_thread_top']) ? ACTIVITY_OBJ_NOTE : ACTIVITY_OBJ_COMMENT);
$new_item['obj'] = json_encode(array(
- 'type' => (($update_item['item_thread_top']) ? ACTIVITY_OBJ_NOTE : ACTIVITY_OBJ_COMMENT),
+ 'type' => $new_item['obj_type'],
'id' => $update_item['mid'],
'parent' => $update_item['parent_mid'],
'link' => array(array('rel' => 'alternate','type' => 'text/html', 'href' => $update_item['plink'])),