Merge pull request #3170 from riking/show_mentions

FEATURE: Mentions stream on user profile
This commit is contained in:
Régis Hanol 2015-02-05 12:47:22 +01:00
commit 48de485f72
4 changed files with 6 additions and 2 deletions

View File

@ -19,7 +19,6 @@ Discourse.UserActionStat = Discourse.Model.extend({
isResponse: function() {
var actionType = this.get('action_type');
return actionType === Discourse.UserAction.TYPES.replies ||
actionType === Discourse.UserAction.TYPES.mentions ||
actionType === Discourse.UserAction.TYPES.quotes;
}.property('action_type')

View File

@ -20,7 +20,6 @@ Discourse.UserStream = Discourse.Model.extend({
var filter = this.get('filter');
if (filter === Discourse.UserAction.TYPES.replies) {
return [Discourse.UserAction.TYPES.replies,
Discourse.UserAction.TYPES.mentions,
Discourse.UserAction.TYPES.quotes].join(",");
}

View File

@ -0,0 +1,5 @@
import UserActivityStreamRoute from "discourse/routes/user-activity-stream";
export default UserActivityStreamRoute.extend({
userActionType: Discourse.UserAction.TYPES["mentions"]
});

View File

@ -54,6 +54,7 @@ export default Ember.Component.extend(StringBuffer, {
case Discourse.UserAction.TYPES.bookmarks: return "bookmark";
case Discourse.UserAction.TYPES.edits: return "pencil";
case Discourse.UserAction.TYPES.replies: return "reply";
case Discourse.UserAction.TYPES.mentions: return "at";
}
}.property("content.action_type")
});