mirror of
https://github.com/flarum/core.git
synced 2025-07-16 22:31:18 +02:00
committed by
GitHub
parent
b663d9b199
commit
080f553a08
@@ -7,17 +7,17 @@ export default class PostLikedNotification extends Notification {
|
||||
}
|
||||
|
||||
href() {
|
||||
return app.route.post(this.props.notification.subject());
|
||||
return app.route.post(this.attrs.notification.subject());
|
||||
}
|
||||
|
||||
content() {
|
||||
const notification = this.props.notification;
|
||||
const notification = this.attrs.notification;
|
||||
const user = notification.fromUser();
|
||||
|
||||
return app.translator.transChoice('flarum-likes.forum.notifications.post_liked_text', 1, {user});
|
||||
}
|
||||
|
||||
excerpt() {
|
||||
return truncate(this.props.notification.subject().contentPlain(), 200);
|
||||
return truncate(this.attrs.notification.subject().contentPlain(), 200);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user