mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
missed this. was inserting dupes when loading more
This commit is contained in:
parent
b7c5687b10
commit
3bfdb2dd5b
1 changed files with 4 additions and 2 deletions
|
@ -88,9 +88,11 @@ window.Discourse.User = Discourse.Model.extend Discourse.Presence,
|
||||||
cache: 'false'
|
cache: 'false'
|
||||||
success: (result)=>
|
success: (result)=>
|
||||||
if result and result.user_actions and result.user_actions.each
|
if result and result.user_actions and result.user_actions.each
|
||||||
|
copy = Em.A()
|
||||||
result.user_actions.each (i)=>
|
result.user_actions.each (i)=>
|
||||||
stream.pushObject(Discourse.UserAction.create(i))
|
copy.pushObject(Discourse.UserAction.create(i))
|
||||||
stream = Discourse.UserAction.collapseStream(stream)
|
copy = Discourse.UserAction.collapseStream(copy)
|
||||||
|
stream.pushObjects(copy)
|
||||||
@set('stream', stream)
|
@set('stream', stream)
|
||||||
callback() if callback
|
callback() if callback
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue