aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Enotify.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-02-11 09:20:32 +0000
committerMario <mario@mariovavti.com>2020-02-11 09:20:32 +0000
commit9f029336cab322e04d29af842ba0a666189c8683 (patch)
tree27c267bb8297d4f79ea5b360e05a63d7d7e577c0 /Zotlabs/Lib/Enotify.php
parent95476cf33cf7c7971e018f9136d1c64dfc901d17 (diff)
downloadvolse-hubzilla-9f029336cab322e04d29af842ba0a666189c8683.tar.gz
volse-hubzilla-9f029336cab322e04d29af842ba0a666189c8683.tar.bz2
volse-hubzilla-9f029336cab322e04d29af842ba0a666189c8683.zip
fix notifications for polls
Diffstat (limited to 'Zotlabs/Lib/Enotify.php')
-rw-r--r--Zotlabs/Lib/Enotify.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index f6f8ad0cb..85e90d67c 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -810,8 +810,9 @@ class Enotify {
}
else {
$itemem_text = (($item['item_thread_top'])
- ? t('created a new post')
- : sprintf( t('commented on %s\'s post'), '[bdi]' . $item['owner']['xchan_name'] . '[/bdi]'));
+ ? (($item['obj_type'] === 'Question') ? t('created a new poll') : t('created a new post'))
+ : (($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) {
$itemem_text = sprintf( t('repeated %s\'s post'), '[bdi]' . $item['author']['xchan_name'] . '[/bdi]');