Added documentation header

This commit is contained in:
Michael 2020-04-15 20:59:45 +00:00
parent f871105ef9
commit 126b95d873
2 changed files with 12 additions and 0 deletions

View file

@ -576,6 +576,12 @@ class Processor
} }
} }
/**
* Store tags and mentions into the tag table
*
* @param integer $uriid
* @param array $tags
*/
private static function storeTags(int $uriid, array $tags = null) private static function storeTags(int $uriid, array $tags = null)
{ {
// Make sure to delete all existing tags (can happen when called via the update functionality) // Make sure to delete all existing tags (can happen when called via the update functionality)

View file

@ -1810,6 +1810,12 @@ class Diaspora
return false; return false;
} }
/**
* Store the mentions in the tag table
*
* @param integer $uriid
* @param string $text
*/
private static function storeMentions(int $uriid, string $text) private static function storeMentions(int $uriid, string $text)
{ {
preg_match_all('/([@!]){(?:([^}]+?); ?)?([^} ]+)}/', $text, $matches, PREG_SET_ORDER); preg_match_all('/([@!]){(?:([^}]+?); ?)?([^} ]+)}/', $text, $matches, PREG_SET_ORDER);