Browse Source

Merge pull request #5967 from annando/ap-nick

Fix function naming
pull/5969/head
Hypolite Petovan 3 years ago
committed by GitHub
parent
commit
f104817967
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Protocol/ActivityPub/Transmitter.php

+ 2
- 2
src/Protocol/ActivityPub/Transmitter.php View File

@ -749,7 +749,7 @@ class Transmitter
* @param array $match Matching values for the callback
* @return string Replaced mention
*/
private static function MentionCallback($match)
private static function mentionCallback($match)
{
if (empty($match[1])) {
return;
@ -872,7 +872,7 @@ class Transmitter
}
$regexp = "/[@!]\[url\=([^\[\]]*)\].*?\[\/url\]/ism";
$body = preg_replace_callback($regexp, ['self', 'MentionCallback'], $body);
$body = preg_replace_callback($regexp, ['self', 'mentionCallback'], $body);
$data['content'] = BBCode::convert($body, false, 7);
$data['source'] = ['content' => $item['body'], 'mediaType' => "text/bbcode"];


Loading…
Cancel
Save