diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-12-11 02:52:43 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-12-11 02:52:43 -0800 |
commit | 9fb7a12849cd0e91e16c68041a525b9a552242d0 (patch) | |
tree | b60debf597497066305531f4860268851bab01ed /include | |
parent | f73c82632f213ac7971b54220b4a0c87d354ca1e (diff) | |
download | volse-hubzilla-9fb7a12849cd0e91e16c68041a525b9a552242d0.tar.gz volse-hubzilla-9fb7a12849cd0e91e16c68041a525b9a552242d0.tar.bz2 volse-hubzilla-9fb7a12849cd0e91e16c68041a525b9a552242d0.zip |
incorrect obj_type on several items
Diffstat (limited to 'include')
-rw-r--r-- | include/conversation.php | 2 | ||||
-rwxr-xr-x | include/items.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php index 3b534dc69..747bb5d0a 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1227,7 +1227,7 @@ function status_editor($a, $x, $popup = false) { '$wait' => t('Please wait'), '$permset' => t('Permission settings'), '$shortpermset' => t('permissions'), - '$ptyp' => (($notes_cid) ? 'note' : 'wall'), + '$ptyp' => '', '$content' => ((x($x,'body')) ? htmlspecialchars($x['body'], ENT_COMPAT,'UTF-8') : ''), '$attachment' => ((x($x, 'attachment')) ? $x['attachment'] : ''), '$post_id' => '', diff --git a/include/items.php b/include/items.php index ef1867c14..8c2e7deb2 100755 --- a/include/items.php +++ b/include/items.php @@ -2349,7 +2349,7 @@ function item_store($arr, $allow_exec = false) { return $ret; } - if($arr['obj_type'] == ACTIVITY_OBJ_NOTE) + if(($arr['obj_type'] == ACTIVITY_OBJ_NOTE) && (! $arr['object'])) $arr['obj_type'] = ACTIVITY_OBJ_COMMENT; // is the new message multi-level threaded? @@ -2870,6 +2870,7 @@ function send_status_notifications($post_id,$item) { if($x) { foreach($x as $xx) { if($xx['author_xchan'] === $r[0]['channel_hash']) { + $notify = true; // check for an unfollow thread activity - we should probably decode the obj and check the id |