mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 20:54:00 -06:00
Merge pull request #3170 from riking/show_mentions
FEATURE: Mentions stream on user profile
This commit is contained in:
commit
48de485f72
@ -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')
|
||||
|
||||
|
@ -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(",");
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,5 @@
|
||||
import UserActivityStreamRoute from "discourse/routes/user-activity-stream";
|
||||
|
||||
export default UserActivityStreamRoute.extend({
|
||||
userActionType: Discourse.UserAction.TYPES["mentions"]
|
||||
});
|
@ -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")
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user