1
0
Fork 0

Added documentation

This commit is contained in:
Michael 2020-04-20 12:19:26 +00:00
parent 27ea747e99
commit e19b1800a4

View 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'], '@!');
}