diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-08-26 22:35:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 22:35:21 +0200 |
commit | 3a94a969f9bd8bd61ddf40b019b8c5f55fdcb849 (patch) | |
tree | 38464ab633fe0774397cedf3644348e2a99d0819 /lib | |
parent | 4482bead6a9247159953fdbe13eeced36a663eca (diff) | |
parent | f954227df7f413e014fb6b5c97582a5c235baaa1 (diff) |
Merge pull request #7761 from nextcloud/feature/polls-follow-up
Polls cleanup
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 { |