diff options
author | Mario Vavti <mario@mariovavti.com> | 2024-10-10 14:17:13 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2024-10-10 14:17:13 +0200 |
commit | 96d53701222f30bc4580659e4d36f1c04d07035a (patch) | |
tree | c16c079811f5f912345d78cdeb8f0ec97f3a162a /Zotlabs/Lib/Activity.php | |
parent | 2bcb6a4fede0fe525d1461d46968362cccedcaff (diff) | |
download | volse-hubzilla-96d53701222f30bc4580659e4d36f1c04d07035a.tar.gz volse-hubzilla-96d53701222f30bc4580659e4d36f1c04d07035a.tar.bz2 volse-hubzilla-96d53701222f30bc4580659e4d36f1c04d07035a.zip |
update item entity for hubzilla
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index f10a2bace..358bb16f0 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -3773,8 +3773,8 @@ class Activity { ->setObjType($object['type']) ->setParentMid(str_replace('/conversation/','/item/', $target)) ->setThrParent(str_replace('/conversation/','/item/', $target)) - ->setApproved($object['object']['id'] ?? '') - ->setReplyto(z_root() . '/channel/' . $channel['channel_address']) + // ->setApproved($object['object']['id'] ?? '') + // ->setReplyto(z_root() . '/channel/' . $channel['channel_address']) ->setTgtType('Collection') ->setTarget([ 'id' => str_replace('/item/','/conversation/', $target), @@ -3790,6 +3790,7 @@ class Activity { ->setPrivate($sourceItem['item_private']) ->setNocomment($sourceItem['item_nocomment']) ->setCommentPolicy($sourceItem['comment_policy']) + ->setPublicPolicy($sourceItem['comment_policy']) ->setPostopts($sourceItem['postopts']); } $result = post_activity_item($item->toArray(), deliver: $deliver, channel: $channel, observer: $channel, addAndSync: false); |