diff options
author | Marco Ambrosini <marcoambrosini@icloud.com> | 2022-08-26 16:09:46 +0200 |
---|---|---|
committer | Marco Ambrosini <marcoambrosini@icloud.com> | 2022-08-26 16:09:46 +0200 |
commit | 9361be27390baafa62fda625c00b2ea18dfd2abb (patch) | |
tree | 6addc5bb493e3dea6440e6b3ed968ee2a76d4c90 /lib | |
parent | 2694da36edc23fa561c80c3d7538867a6b8c44b2 (diff) |
Display poll result button in system message
Signed-off-by: Marco Ambrosini <marcoambrosini@icloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Chat/Parser/SystemMessage.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Chat/Parser/SystemMessage.php b/lib/Chat/Parser/SystemMessage.php index 2f4d128d0..1124dd1e6 100644 --- a/lib/Chat/Parser/SystemMessage.php +++ b/lib/Chat/Parser/SystemMessage.php @@ -410,6 +410,7 @@ class SystemMessage { } } elseif ($message === 'object_shared') { $parsedParameters['object'] = $parameters['metaData']; + $parsedParameters['object']['id'] = (string) $parsedParameters['object']['id']; $parsedMessage = '{object}'; if (isset($parsedParameters['object']['type']) @@ -494,12 +495,14 @@ class SystemMessage { } } elseif ($message === 'poll_closed') { $parsedParameters['poll'] = $parameters['poll']; + $parsedParameters['poll']['id'] = (string) $parsedParameters['poll']['id']; $parsedMessage = $this->l->t('{actor} closed the poll {poll}'); if ($currentUserIsActor) { $parsedMessage = $this->l->t('You closed the poll {poll}'); } } elseif ($message === 'poll_voted') { $parsedParameters['poll'] = $parameters['poll']; + $parsedParameters['poll']['id'] = (string) $parsedParameters['poll']['id']; $parsedMessage = $this->l->t('Someone voted on the poll {poll}'); unset($parsedParameters['actor']); } else { |