mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +02:00
suspend anonymously (#39)
* suspend anonymously closes https://github.com/flarum/core/issues/2614 * format less file * empty methods should return null
This commit is contained in:
@@ -15,7 +15,6 @@ export default class UserSuspendedNotification extends Notification {
|
||||
const timeReadable = dayjs(suspendedUntil).from(notification.createdAt(), true);
|
||||
|
||||
return app.translator.trans('flarum-suspend.forum.notifications.user_suspended_text', {
|
||||
user: notification.fromUser(),
|
||||
timeReadable,
|
||||
});
|
||||
}
|
||||
|
@@ -12,8 +12,6 @@ export default class UserUnsuspendedNotification extends Notification {
|
||||
content() {
|
||||
const notification = this.attrs.notification;
|
||||
|
||||
return app.translator.trans('flarum-suspend.forum.notifications.user_unsuspended_text', {
|
||||
user: notification.fromUser(),
|
||||
});
|
||||
return app.translator.trans('flarum-suspend.forum.notifications.user_unsuspended_text');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user