From 29d498770c1533a85748a8cd7bbd617894efa242 Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Mon, 17 Jan 2022 21:33:38 +0000 Subject: [PATCH] [COMPONENTS][Group] Create a group route added, template polished [COMPONENTS][Circle] Removed any Group related route from shouldAddToRightPanel event [CARDS][Profile] Block should now allow inline long nicknames to not break --- components/Posting/Posting.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/Posting/Posting.php b/components/Posting/Posting.php index c9aec50190..9ea00594ac 100644 --- a/components/Posting/Posting.php +++ b/components/Posting/Posting.php @@ -146,7 +146,9 @@ class Posting extends Component $extra_args = []; Event::handle('AddExtraArgsToNoteContent', [$request, $actor, $data, &$extra_args, $form_params, $form]); - $target = !\array_key_exists('in', $data) || $data['in'] === 'public' ? $context_actor : null; + if (\array_key_exists('in', $data) && $data['in'] !== 'public') { + $target = $data['in']; + } self::storeLocalNote( actor: $user->getActor(),