]> git.mxchange.org Git - friendica.git/commitdiff
Rename system.disable_mentions_removal config key to system.disable_implicit_mentions
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Feb 2019 04:23:05 +0000 (23:23 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Feb 2019 22:32:11 +0000 (17:32 -0500)
- Update configuration key description

config/defaults.config.php
src/Protocol/ActivityPub/Processor.php

index 694f75c2200341aa284b4f02431a185e57e773a7..a6f90f319e1c901814ac0daa6a8de006c34a4282 100644 (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.
index 5899d7f25f0f913a83e56e81db4b3fdf64bfd8ab..68697381b2e8699a18789a7fa70bda04d677e75d 100644 (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;
                }