mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
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:
parent
002341468d
commit
adf9f40c2e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user