Allow null $tags parameter in ActivityPub\Processor::constructTagString
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 16 May 2019 22:10:42 +0000 (18:10 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 16 May 2019 22:10:42 +0000 (18:10 -0400)
src/Protocol/ActivityPub/Processor.php

index b6f3486..70728ed 100644 (file)
@@ -64,10 +64,9 @@ class Processor
         *
         * @param array   $tags
         * @param boolean $sensitive
-        * @param array   $implicit_mentions List of profile URLs to skip
         * @return string with tags
         */
-       private static function constructTagString(array $tags, $sensitive)
+       private static function constructTagString(array $tags = null, $sensitive = false)
        {
                if (empty($tags)) {
                        return '';