mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:50:10 +00:00
Allow to reject specific languages on receiving posts via the relay
This commit is contained in:
parent
636325efcc
commit
f08b08e0d8
5 changed files with 51 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue