From e19b1800a4d79e79f2880954e5016dc2efd7483b Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Apr 2020 12:19:26 +0000 Subject: [PATCH] Added documentation --- src/Protocol/ActivityPub/Processor.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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'], '@!'); } -- 2.39.5