Allow to reject specific languages on receiving posts via the relay

This commit is contained in:
Michael Vogel 2022-09-19 12:36:12 +02:00
parent 636325efcc
commit f08b08e0d8
5 changed files with 51 additions and 16 deletions

View file

@ -91,7 +91,7 @@ class Processor
* @param string $body
* @return string
*/
protected static function normalizeMentionLinks(string $body): string
public static function normalizeMentionLinks(string $body): string
{
return preg_replace('%\[url=([^\[\]]*)]([#@!])(.*?)\[/url]%ism', '$2[url=$1]$3[/url]', $body);
}