Commit dcee5284 authored by Vincent Petry's avatar Vincent Petry Committed by Thomas Müller
Browse files

Don't send activity to non-admins when assigning invisible tags (#25192)

parent ef5217d6
......@@ -188,6 +188,10 @@ class Listener {
foreach ($tags as $tag) {
// don't publish activity for non-admins if tag is invisible
if (!$tag->isUserVisible() && !$this->groupManager->isAdmin($user)) {
if ($event->getEvent() === MapperEvent::EVENT_ASSIGN) {
$activity->setSubject(Extension::ASSIGN_TAG, [
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment