From 126b95d873fc81187abe76e6b04144a0069daced Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 15 Apr 2020 20:59:45 +0000 Subject: [PATCH] Added documentation header --- src/Protocol/ActivityPub/Processor.php | 6 ++++++ src/Protocol/Diaspora.php | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 5b12d99160..023100dc72 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -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) { // Make sure to delete all existing tags (can happen when called via the update functionality) diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index 2923125546..5580234c64 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -1810,6 +1810,12 @@ class Diaspora return false; } + /** + * Store the mentions in the tag table + * + * @param integer $uriid + * @param string $text + */ private static function storeMentions(int $uriid, string $text) { preg_match_all('/([@!]){(?:([^}]+?); ?)?([^} ]+)}/', $text, $matches, PREG_SET_ORDER);