diff options
author | Mario <mario@mariovavti.com> | 2025-05-11 13:39:37 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-05-11 13:39:37 +0000 |
commit | 16fafdbbb03c29c5d00e54ccb2aca43b1f5c4780 (patch) | |
tree | 58ec23a49876738246aa03d385d192497486ae90 | |
parent | b5acde14209ed82039b26b10299f505658758e64 (diff) | |
download | volse-hubzilla-16fafdbbb03c29c5d00e54ccb2aca43b1f5c4780.tar.gz volse-hubzilla-16fafdbbb03c29c5d00e54ccb2aca43b1f5c4780.tar.bz2 volse-hubzilla-16fafdbbb03c29c5d00e54ccb2aca43b1f5c4780.zip |
remove redundant query for stored item
-rw-r--r-- | Zotlabs/Lib/Activity.php | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index cc448c25b..0ba475bb6 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -3014,7 +3014,6 @@ class Activity { } if ($x['success']) { - if ($relay && $channel['channel_hash'] === $x['item']['owner_xchan'] && $x['item']['verb'] !== 'Add' && !$isCollectionOperation) { $approval = Activity::addToCollection($channel, $act->data, $x['item']['parent_mid'], $x['item'], deliver: false); } @@ -3033,18 +3032,8 @@ class Activity { } } - // find the item we just created - - $r = q("SELECT item.*, tp.uuid AS thr_parent_uuid FROM item - LEFT JOIN item tp ON item.thr_parent = tp.mid AND item.uid = tp.uid - WHERE item.id = %d", - intval($x['item_id']) - ); - + send_status_notifications($x['item_id'], $x['item']); - if ($r) { - send_status_notifications($x['item_id'], $r[0]); - } sync_an_item($channel['channel_id'], $x['item_id']); } |