[UTIL][Formatting] Fix wrong event name

This commit is contained in:
Hugo Sales 2021-11-28 11:16:39 +00:00 committed by Diogo Peralta Cordeiro
parent 8f5b404941
commit 66ff3c594d
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
1 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ abstract class Formatting
// Split \n\n into paragraphs, process each paragrah and merge // Split \n\n into paragraphs, process each paragrah and merge
return implode("\n", F\map(explode("\n\n", $text), function (string $paragraph) use ($language) { return implode("\n", F\map(explode("\n\n", $text), function (string $paragraph) use ($language) {
$paragraph = nl2br($paragraph, use_xhtml: false); $paragraph = nl2br($paragraph, use_xhtml: false);
Event::handle('onRenderPlainTextNoteContent', [&$paragraph, $language]); Event::handle('RenderPlainTextNoteContent', [&$paragraph, $language]);
return HTML::html(['p' => [$paragraph]], options: ['raw' => true, 'indent' => false]); return HTML::html(['p' => [$paragraph]], options: ['raw' => true, 'indent' => false]);
})); }));
@ -286,7 +286,7 @@ abstract class Formatting
* Note the return data format is internal, to be used for building links and * Note the return data format is internal, to be used for building links and
* such. Should not be used directly; rather, call common_linkify_mentions(). * such. Should not be used directly; rather, call common_linkify_mentions().
* *
* @param Actor $actor the Actor that is sending the current text * @param Actor $actor the Actor that is sending the current text
*/ */
public static function findMentions(string $text, Actor $actor): array public static function findMentions(string $text, Actor $actor): array
{ {