1
0
mirror of https://github.com/flarum/core.git synced 2025-08-03 15:07:53 +02:00

fix: post mention notification errors with _no content_ subjects (#3493)

Co-authored-by: David Wheatley <hi@davwheat.dev>
This commit is contained in:
Sami Mazouz
2022-06-19 22:27:39 +01:00
committed by GitHub
parent 49ab6630d4
commit 976a03c9e5

View File

@@ -23,6 +23,6 @@ export default class PostMentionedNotification extends Notification {
} }
excerpt() { excerpt() {
return truncate(this.attrs.notification.subject().contentPlain(), 200); return truncate(this.attrs.notification.subject().contentPlain() || '', 200);
} }
} }