mirror of
https://github.com/flarum/core.git
synced 2025-08-03 15:07:53 +02:00
Fix suspended notification not showing correct suspension length (#32)
This commit is contained in:
committed by
GitHub
parent
064d1f5eb6
commit
1c6b8c67a7
@@ -12,7 +12,7 @@ export default class UserSuspendedNotification extends Notification {
|
|||||||
content() {
|
content() {
|
||||||
const notification = this.attrs.notification;
|
const notification = this.attrs.notification;
|
||||||
const suspendedUntil = notification.content();
|
const suspendedUntil = notification.content();
|
||||||
const timeReadable = dayjs(suspendedUntil.date).from(notification.createdAt(), true);
|
const timeReadable = dayjs(suspendedUntil).from(notification.createdAt(), true);
|
||||||
|
|
||||||
return app.translator.trans('flarum-suspend.forum.notifications.user_suspended_text', {
|
return app.translator.trans('flarum-suspend.forum.notifications.user_suspended_text', {
|
||||||
user: notification.fromUser(),
|
user: notification.fromUser(),
|
||||||
|
Reference in New Issue
Block a user