]> git.mxchange.org Git - friendica.git/commitdiff
Added documentation
authorMichael <heluecht@pirati.ca>
Mon, 20 Apr 2020 12:19:26 +0000 (12:19 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 20 Apr 2020 12:19:26 +0000 (12:19 +0000)
src/Protocol/ActivityPub/Processor.php

index d29b6977b6564292723e22ea5caccaed9aab0504..4b49bd55cfbf34f95fc326fe54e4e45b7dcaf3f7 100644 (file)
@@ -421,10 +421,15 @@ class Processor
                return $item;
        }
 
-       private static function storeFromBody($item)
+       /**
+        * Store hashtags and mentions
+        *
+        * @param array $item
+        */
+       private static function storeFromBody(array $item)
        {
                // Make sure to delete all existing tags (can happen when called via the update functionality)
-               DBA::delete('post-tag', ['uri-id' => $uriid]);
+               DBA::delete('post-tag', ['uri-id' => $item['uri-id']]);
 
                Tag::storeFromBody($item['uri-id'], $item['body'], '@!');
        }