diff options
author | Joas Schilling <coding@schilljs.com> | 2022-03-25 17:04:28 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-03-28 18:00:02 +0300 |
commit | e6b811105c156fd84a9c8bf3481aeda834de2145 (patch) | |
tree | 6fa7066b6e165903b48da1b24742312592da330c /lib | |
parent | 07b3010c34299629989d98250d553058aaa229d2 (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.php | 5 |
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(); } |