]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Processor.php
Rename system.disable_mentions_removal config key to system.disable_implicit_mentions
[friendica.git] / src / Protocol / ActivityPub / Processor.php
index f4befcd6f1f0f630d15df668cdfcbca986209458..68697381b2e8699a18789a7fa70bda04d677e75d 100644 (file)
@@ -289,7 +289,7 @@ class Processor
                        $item['owner-link'] = $activity['actor'];
                        $item['owner-id'] = Contact::getIdForURL($activity['actor'], 0, true);
                } else {
-                       Logger::log('Ignoring actor because of thread completion.', Logger::DEBUG);
+                       Logger::info('Ignoring actor because of thread completion.');
                        $item['owner-link'] = $item['author-link'];
                        $item['owner-id'] = $item['author-id'];
                }
@@ -358,7 +358,11 @@ class Processor
                        }
 
                        $item_id = Item::insert($item);
-                       Logger::log('Storing for user ' . $item['uid'] . ': ' . $item_id);
+                       if ($item_id) {
+                               Logger::info('Item insertion successful', ['user' => $item['uid'], 'item_id' => $item_id]);
+                       } else {
+                               Logger::notice('Item insertion aborted', ['user' => $item['uid']]);
+                       }
 
                        if ($item['uid'] == 0) {
                                $stored = $item_id;
@@ -689,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;
                }