mirror of
https://github.com/flarum/core.git
synced 2025-07-26 03:01:22 +02:00
fix: Cannot reply to posts by deleted authors (#75)
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import extractText from 'flarum/common/utils/extractText';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether to use the old mentions format.
|
* Whether to use the old mentions format.
|
||||||
*
|
*
|
||||||
@@ -5,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
export const shouldUseOldFormat = () => app.forum.attribute('allowUsernameMentionFormat') || false;
|
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.
|
* Fetches a user's username or display name.
|
||||||
|
Reference in New Issue
Block a user