aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-04-21 11:30:42 +0000
committerMario <mario@mariovavti.com>2025-04-21 11:30:42 +0000
commit81559e9bcfc731b45051b7760b0a242774966740 (patch)
tree1ca86374fa609c3f33337bb3ecffd52a2e42d1f7
parent1b458c7d65287c29621cb916f3d20e28d4d2cce0 (diff)
downloadvolse-hubzilla-81559e9bcfc731b45051b7760b0a242774966740.tar.gz
volse-hubzilla-81559e9bcfc731b45051b7760b0a242774966740.tar.bz2
volse-hubzilla-81559e9bcfc731b45051b7760b0a242774966740.zip
fix php warnings
-rw-r--r--Zotlabs/Lib/Activity.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 3029f0c94..75c468823 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -581,14 +581,12 @@ class Activity {
}
}
- if (intval($i['item_wall'])) {
- $ret['commentPolicy'] = map_scope(PermissionLimits::Get($i['uid'], 'post_comments'));
- }
-
if (intval($i['item_private']) === 2) {
$ret['directMessage'] = true;
}
+ $ret['commentPolicy'] = (($i['item_wall']) ? map_scope(PermissionLimits::Get($i['uid'], 'post_comments')) : '');
+
if (array_key_exists('comments_closed', $i) && $i['comments_closed'] !== EMPTY_STR && $i['comments_closed'] > NULL_DATE) {
if ($ret['commentPolicy']) {
$ret['commentPolicy'] .= ' ';