mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Collapse user activity items loaded from message bus
This commit is contained in:
parent
2b5be29d3c
commit
b1c1053cf1
1 changed files with 8 additions and 1 deletions
|
@ -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 a new issue