From 1c6b8c67a7c21c74e98ba7b05900d4264b5e0658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sevilla=20Mart=C3=ADn?= <6401250+datitisev@users.noreply.github.com> Date: Sun, 24 Jan 2021 01:42:52 -0500 Subject: [PATCH] Fix suspended notification not showing correct suspension length (#32) --- .../js/src/forum/components/UserSuspendedNotification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js b/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js index bce05ba18..0d9b36035 100644 --- a/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js +++ b/extensions/suspend/js/src/forum/components/UserSuspendedNotification.js @@ -12,7 +12,7 @@ export default class UserSuspendedNotification extends Notification { content() { const notification = this.attrs.notification; 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', { user: notification.fromUser(),