1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 17:51:24 +02:00

fix: Cannot reply to posts by deleted authors (#75)

This commit is contained in:
Sami Mazouz
2021-11-05 20:04:20 +01:00
committed by GitHub
parent b245b41b67
commit 056c79a908

View File

@@ -1,3 +1,5 @@
import extractText from 'flarum/common/utils/extractText';
/**
* Whether to use the old mentions format.
*
@@ -5,7 +7,7 @@
*/
export const shouldUseOldFormat = () => app.forum.attribute('allowUsernameMentionFormat') || false;
const getDeletedUserText = () => app.translator.trans('core.lib.username.deleted_text');
const getDeletedUserText = () => extractText(app.translator.trans('core.lib.username.deleted_text'));
/**
* Fetches a user's username or display name.