diff options
author | Mario <mario@mariovavti.com> | 2022-09-29 08:58:36 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-09-29 08:58:36 +0000 |
commit | 72520a2dd9cddbf4176f6d6de429961f29aad4df (patch) | |
tree | 44975813de1c5e3a74cf06b2cddfc8bc0ccdabb9 /Zotlabs/Widget | |
parent | 13476d500370a6aece6d1969c2a0fb0391039f83 (diff) | |
download | volse-hubzilla-72520a2dd9cddbf4176f6d6de429961f29aad4df.tar.gz volse-hubzilla-72520a2dd9cddbf4176f6d6de429961f29aad4df.tar.bz2 volse-hubzilla-72520a2dd9cddbf4176f6d6de429961f29aad4df.zip |
fix hq widget displaying superblocked items
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r-- | Zotlabs/Widget/Messages.php | 13 |
1 files changed, 13 insertions, 0 deletions
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); |