From 66ff3c594d3d2b4ee5f5f26ead12f57e74091555 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sun, 28 Nov 2021 11:16:39 +0000 Subject: [PATCH] [UTIL][Formatting] Fix wrong event name --- src/Util/Formatting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Util/Formatting.php b/src/Util/Formatting.php index 3067479504..9c6cece44e 100644 --- a/src/Util/Formatting.php +++ b/src/Util/Formatting.php @@ -237,7 +237,7 @@ abstract class Formatting // Split \n\n into paragraphs, process each paragrah and merge return implode("\n", F\map(explode("\n\n", $text), function (string $paragraph) use ($language) { $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]); })); @@ -286,7 +286,7 @@ abstract class Formatting * 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(). * - * @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 {