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
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-03-25 17:04:28 +0300
committerJoas Schilling <coding@schilljs.com>2022-03-28 18:00:02 +0300
commite6b811105c156fd84a9c8bf3481aeda834de2145 (patch)
tree6fa7066b6e165903b48da1b24742312592da330c /lib
parent07b3010c34299629989d98250d553058aaa229d2 (diff)
Allow to react to file and object shares
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Chat/ReactionManager.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Chat/ReactionManager.php b/lib/Chat/ReactionManager.php
index 799e1de52..e90b85017 100644
--- a/lib/Chat/ReactionManager.php
+++ b/lib/Chat/ReactionManager.php
@@ -190,7 +190,10 @@ class ReactionManager {
if ($comment->getObjectType() !== 'chat'
|| $comment->getObjectId() !== (string) $chat->getId()
- || $comment->getVerb() !== 'comment') {
+ || !in_array($comment->getVerb(), [
+ 'comment',
+ 'object_shared',
+ ], true)) {
throw new ReactionOutOfContextException();
}