diff options
author | Mario <mario@mariovavti.com> | 2022-01-03 20:20:42 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-03 20:20:42 +0000 |
commit | 7d348fe69f71d907a353eb8c57d30127cd5f74cd (patch) | |
tree | 905abd540a498e0f1886d76c339d78abe287bfb7 /include | |
parent | fa8fb9e73f55ba723a12200c4223854e380f0a57 (diff) | |
download | volse-hubzilla-7d348fe69f71d907a353eb8c57d30127cd5f74cd.tar.gz volse-hubzilla-7d348fe69f71d907a353eb8c57d30127cd5f74cd.tar.bz2 volse-hubzilla-7d348fe69f71d907a353eb8c57d30127cd5f74cd.zip |
fix Access^CccessList include and plink in post_activity_item()
Diffstat (limited to 'include')
-rw-r--r-- | include/items.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index a66703e6e..7a899a3fd 100644 --- a/include/items.php +++ b/include/items.php @@ -476,7 +476,7 @@ function post_activity_item($arr, $allow_code = false, $deliver = true) { $arr['comment_policy'] = map_scope(PermissionLimits::Get($channel['channel_id'],'post_comments')); if ((! $arr['plink']) && (intval($arr['item_thread_top']))) { - $arr['plink'] = substr(z_root() . '/channel/' . $channel['channel_address'] . '/' . (filter_var($arr['mid'], FILTER_VALIDATE_URL) === false ? '?f=&mid=' : '') . urlencode($arr['mid']),0,190); + $arr['plink'] = $arr['mid']; } @@ -4772,8 +4772,9 @@ function send_profile_photo_activity($channel,$photo,$profile) { $arr['body'] = sprintf($t,$channel['channel_name'],$ptext) . "\n\n" . $ltext; - $acl = new AccessList($channel); + $acl = new Zotlabs\Access\AccessList($channel); $x = $acl->get(); + $arr['allow_cid'] = $x['allow_cid']; $arr['allow_gid'] = $x['allow_gid']; |