mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Collapse user activity items loaded from message bus
This commit is contained in:
parent
2b5be29d3c
commit
b1c1053cf1
@ -102,10 +102,17 @@
|
||||
cache: 'false',
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
var action;
|
||||
|
||||
if ((_this.get('streamFilter') || result.action_type) !== result.action_type) {
|
||||
return;
|
||||
}
|
||||
return stream.insertAt(0, Discourse.UserAction.create(result));
|
||||
|
||||
action = Em.A();
|
||||
action.pushObject(Discourse.UserAction.create(result));
|
||||
action = Discourse.UserAction.collapseStream(action);
|
||||
|
||||
return stream.insertAt(0, action[0]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user