Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-07-13 14:37:15 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-07-13 18:25:22 +0300
commit9ef8d1a782466d52280b9173a9d600f0b4b08b0a (patch)
treeb8deb2c3675bbab9874c42027a812abacfdc1c47
parent25be1afea80fbd34531fbb240b46ad6558ac875b (diff)
Add more search attributesbackport/7582/stable24
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/Search/MessageSearch.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Search/MessageSearch.php b/lib/Search/MessageSearch.php
index ec0d585cf..1cd4f60d6 100644
--- a/lib/Search/MessageSearch.php
+++ b/lib/Search/MessageSearch.php
@@ -215,6 +215,9 @@ class MessageSearch implements IProvider {
$entry->addAttribute('conversation', $room->getToken());
$entry->addAttribute('messageId', $comment->getId());
+ $entry->addAttribute('actorType', $comment->getActorType());
+ $entry->addAttribute('actorId', $comment->getActorId());
+ $entry->addAttribute('timestamp', '' . $comment->getCreationDateTime()->getTimestamp());
return $entry;
}