aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Widget/Messages.php13
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);