mirror of
https://github.com/flarum/framework.git
synced 2025-04-25 14:14:03 +08:00
fix: Cannot reply to posts by deleted authors (#75)
This commit is contained in:
parent
b245b41b67
commit
056c79a908
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user