Merge pull request #7148 from MrPetovan/bug/fatal-errors

Allow null $tags parameter in ActivityPub\Processor::constructTagString
This commit is contained in:
Philipp 2019-05-17 13:19:58 +02:00 committed by GitHub
commit 8011c844c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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 '';