1
0
mirror of https://github.com/flarum/core.git synced 2025-07-16 22:31:18 +02:00

Mithril 2 Update (#22)

Update for Mithril 2
This commit is contained in:
Alexander Skvortsov
2020-09-23 22:49:05 -04:00
committed by GitHub
parent b663d9b199
commit 080f553a08
4 changed files with 9 additions and 10 deletions

View File

@@ -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);
}
}