From 72520a2dd9cddbf4176f6d6de429961f29aad4df Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Sep 2022 08:58:36 +0000 Subject: fix hq widget displaying superblocked items --- Zotlabs/Widget/Messages.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Zotlabs/Widget/Messages.php b/Zotlabs/Widget/Messages.php index 66b371c8e..c92b9e311 100644 --- a/Zotlabs/Widget/Messages.php +++ b/Zotlabs/Widget/Messages.php @@ -95,6 +95,19 @@ class Messages { foreach($items as $item) { + $hook_data = [ + 'uid' => $item['uid'], + 'owner_xchan' => $item['owner_xchan'], + 'author_xchan' => $item['author_xchan'], + 'cancel' => false + ]; + + call_hooks('messages_widget', $hook_data); + + if ($hook_data['cancel']) { + continue; + } + $info = ''; if ($type == 'direct') { $info .= self::get_dm_recipients($channel, $item); -- cgit v1.2.3