mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 08:35:14 +00:00
post_activity_item incorrectly setting the obj_type when a valid type was specified
This commit is contained in:
parent
89536ff88b
commit
32acb7f6e1
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue