FEATURE: All on user page is now only should posts + topics
This commit is contained in:
parent
52672088a0
commit
70eb7b8fdf
|
@ -276,7 +276,10 @@ Discourse.User = Discourse.Model.extend({
|
|||
if (this.blank('statsExcludingPms')) return 0;
|
||||
var count = 0;
|
||||
_.each(this.get('statsExcludingPms'), function(val) {
|
||||
count += val.count;
|
||||
if (val.action_type === Discourse.UserAction.TYPES.posts ||
|
||||
val.action_type === Discourse.UserAction.TYPES.topics ) {
|
||||
count += val.count;
|
||||
}
|
||||
});
|
||||
return count;
|
||||
}.property('statsExcludingPms.@each.count'),
|
||||
|
|
|
@ -23,6 +23,12 @@ Discourse.UserStream = Discourse.Model.extend({
|
|||
Discourse.UserAction.TYPES.mentions,
|
||||
Discourse.UserAction.TYPES.quotes].join(",");
|
||||
}
|
||||
|
||||
if(!filter) {
|
||||
return [Discourse.UserAction.TYPES.posts,
|
||||
Discourse.UserAction.TYPES.topics];
|
||||
}
|
||||
|
||||
return filter;
|
||||
}.property('filter'),
|
||||
|
||||
|
|
Loading…
Reference in New Issue