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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user