mirror of
https://github.com/flarum/core.git
synced 2025-07-31 13:40:20 +02:00
Update notification architecture
This commit is contained in:
@@ -4,18 +4,11 @@ import username from 'flarum/helpers/username';
|
||||
export default class NotificationDiscussionStickied extends Notification {
|
||||
view() {
|
||||
var notification = this.props.notification;
|
||||
var discussion = notification.subject();
|
||||
|
||||
return super.view({
|
||||
href: app.route('discussion.near', {
|
||||
id: discussion.id(),
|
||||
slug: discussion.slug(),
|
||||
near: notification.content().postNumber
|
||||
}),
|
||||
config: m.route,
|
||||
title: discussion.title(),
|
||||
href: app.route.discussion(notification.subject(), notification.content().postNumber),
|
||||
icon: 'thumb-tack',
|
||||
content: ['Stickied by ', username(notification.sender())]
|
||||
content: [username(notification.sender()), ' stickied']
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user