aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-03-12 09:34:35 +0000
committerMario <mario@mariovavti.com>2023-03-12 09:34:35 +0000
commit9daecca0ad4b748f87561c0f8d892ff9b74c5a0e (patch)
tree8e5702922fbc1e0688b4abcbb352ad5fe2959a29
parentc9d8a4dc1dac72646ff4bbef082305cc2287b92e (diff)
downloadvolse-hubzilla-9daecca0ad4b748f87561c0f8d892ff9b74c5a0e.tar.gz
volse-hubzilla-9daecca0ad4b748f87561c0f8d892ff9b74c5a0e.tar.bz2
volse-hubzilla-9daecca0ad4b748f87561c0f8d892ff9b74c5a0e.zip
make an format exception for repeated forum posts
-rw-r--r--Zotlabs/Lib/Enotify.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index 823e1df29..585761cc4 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -828,7 +828,7 @@ class Enotify {
: (($item['obj_type'] === 'Answer') ? sprintf( t('voted on %s\'s poll'), '[bdi]' . $item['owner']['xchan_name'] . '[/bdi]') : sprintf( t('commented on %s\'s post'), '[bdi]' . $item['owner']['xchan_name'] . '[/bdi]'))
);
- if($item['verb'] === ACTIVITY_SHARE) {
+ if($item['verb'] === ACTIVITY_SHARE && empty($item['owner']['xchan_pubforum'])) {
$itemem_text = sprintf( t('repeated %s\'s post'), '[bdi]' . $item['author']['xchan_name'] . '[/bdi]');
}
@@ -860,7 +860,7 @@ class Enotify {
// convert this logic into a json array just like the system notifications
- $who = (($item['verb'] === ACTIVITY_SHARE) ? 'owner' : 'author');
+ $who = (($item['verb'] === ACTIVITY_SHARE && empty($item['owner']['xchan_pubforum'])) ? 'owner' : 'author');
$body = html2plain(bbcode($item['body'], ['drop_media' => true, 'tryoembed' => false]), 75, true);
if ($body) {
$body = htmlentities($body, ENT_QUOTES, 'UTF-8', false);