Rename system.disable_mentions_removal config key to system.disable_implicit_mentions

- Update configuration key description
This commit is contained in:
Hypolite Petovan 2019-02-22 23:23:05 -05:00
parent 34bc0b0c97
commit 0cc0df9e3e
2 changed files with 9 additions and 4 deletions

View File

@ -135,9 +135,14 @@ return [
// Disables the check if a mail address is in a valid format and can be resolved via DNS.
'disable_email_validation' => false,
// disable_mentions_removal (Boolean)
// Disables the automatic removal of implicit mentions in ActivityPub postings.
'disable_mentions_removal' => false,
// disable_implicit_mentions (Boolean) since 2019.03
// Implicit mentions are mentions in the body of replies that are redundant in a thread-enabled system like Friendica.
// This config key disables the gathering of implicit mentions in incoming and outgoing posts.
// Also disables the default automatic removal of implicit mentions from the body of incoming posts.
// Also disables the default automatic addition of implicit mentions in the body of outgoing posts.
// Disabling implicit mentions also affects the "explicit_mentions" additional feature by limiting it
// to the replied-to post author mention in the comment boxes.
'disable_implicit_mentions' => false,
// disable_url_validation (Boolean)
// Disables the DNS lookup of an URL.

View File

@ -693,7 +693,7 @@ class Processor
*/
private static function removeImplicitMentionsFromBody($body, array $implicit_mentions)
{
if (Config::get('system', 'disable_mentions_removal')) {
if (Config::get('system', 'disable_implicit_mentions')) {
return $body;
}