aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <redmatrix@redmatrix.me>2015-04-14 20:50:38 -0700
committerfriendica <redmatrix@redmatrix.me>2015-04-14 20:50:38 -0700
commit32acb7f6e1d7b504cb633cb951ed6d722a75182f (patch)
tree10a7b8be6235c30d986d59dcb1050dfdc5061364 /include
parent89536ff88bcb9ca74ace4d7a74d6a4214d88ed2e (diff)
downloadvolse-hubzilla-32acb7f6e1d7b504cb633cb951ed6d722a75182f.tar.gz
volse-hubzilla-32acb7f6e1d7b504cb633cb951ed6d722a75182f.tar.bz2
volse-hubzilla-32acb7f6e1d7b504cb633cb951ed6d722a75182f.zip
post_activity_item incorrectly setting the obj_type when a valid type was specified
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index e08aab85a..659d0e350 100755
--- a/include/items.php
+++ b/include/items.php
@@ -436,7 +436,7 @@ function post_activity_item($arr) {
$arr['verb'] = ((x($arr,'verb')) ? $arr['verb'] : ACTIVITY_POST);
$arr['obj_type'] = ((x($arr,'obj_type')) ? $arr['obj_type'] : ACTIVITY_OBJ_NOTE);
- if($is_comment)
+ if($is_comment && $arr['obj_type'] === ACTIVITY_OBJ_NOTE))
$arr['obj_type'] = ACTIVITY_OBJ_COMMENT;
$arr['allow_cid'] = ((x($arr,'allow_cid')) ? $arr['allow_cid'] : $channel['channel_allow_cid']);