aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-20 20:31:59 +0000
committerMario <mario@mariovavti.com>2022-11-20 20:31:59 +0000
commit41376ec2cda617549b717769f942019ebc2ba797 (patch)
tree1aabb382bc51bd3ad493ce4ef39bc0cd0febca10 /include/items.php
parentbf335ecaf36e628fc76b3fc84c4a73ab82f9e2a0 (diff)
downloadvolse-hubzilla-41376ec2cda617549b717769f942019ebc2ba797.tar.gz
volse-hubzilla-41376ec2cda617549b717769f942019ebc2ba797.tar.bz2
volse-hubzilla-41376ec2cda617549b717769f942019ebc2ba797.zip
fix issue in tag_deliver() and silence some more warnings
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 4e4869aa8..0f477e761 100644
--- a/include/items.php
+++ b/include/items.php
@@ -2659,9 +2659,10 @@ function tag_deliver($uid, $item_id) {
if ($is_group && intval($x[0]['item_wall'])) {
// don't let the forked delivery chain recurse
- if ($item['verb'] === 'Announce' && $item['author_xchan'] === $u['channel_hash']) {
+ if ($item['verb'] === 'Announce' && $item['author_xchan'] === $u[0]['channel_hash']) {
return;
}
+
// don't announce moderated content until it has been approved
if (intval($item['item_blocked']) === ITEM_MODERATED) {
return;
@@ -2678,7 +2679,7 @@ function tag_deliver($uid, $item_id) {
}
elseif (intval($x[0]['item_uplink'])) {
- start_delivery_chain($u,$item,$item_id,$x[0]);
+ start_delivery_chain($u[0], $item, $item_id, $x[0]);
}
}