From: Michael Date: Mon, 20 Apr 2020 12:19:26 +0000 (+0000) Subject: Added documentation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e19b1800a4d79e79f2880954e5016dc2efd7483b;p=friendica.git Added documentation --- diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index d29b6977b6..4b49bd55cf 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -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'], '@!'); }