mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Make sure we check the instance list in the activity stream middleware so we aren't causing a storm of update events trying to attach the request user
This commit is contained in:
@@ -44,7 +44,8 @@ class ActivityStreamMiddleware(object):
|
||||
if isinstance(user, User) and instance.user is None:
|
||||
instance.user = user
|
||||
else:
|
||||
self.isActivityStreamEvent = True
|
||||
self.instances.append(instance)
|
||||
if instance not in self.instances:
|
||||
self.isActivityStreamEvent = True
|
||||
self.instances.append(instance)
|
||||
else:
|
||||
self.isActivityStreamEvent = False
|
||||
|
||||
Reference in New Issue
Block a user