aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-09-29 09:03:29 +0000
committerMario <mario@mariovavti.com>2022-09-29 09:03:29 +0000
commit653eb2909ba531f7189eac3a6f729d6b010476f2 (patch)
treebd18726ad315399e506be976aa642581af9e7e63
parenta7d4666a70cd22942234b8d9f3a1cff7a623bf0b (diff)
parent72520a2dd9cddbf4176f6d6de429961f29aad4df (diff)
downloadvolse-hubzilla-653eb2909ba531f7189eac3a6f729d6b010476f2.tar.gz
volse-hubzilla-653eb2909ba531f7189eac3a6f729d6b010476f2.tar.bz2
volse-hubzilla-653eb2909ba531f7189eac3a6f729d6b010476f2.zip
Merge branch 'dev' into 7.8RC
-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);