From f9f7018639b92c91f2873bcfcf47f56ec8d25af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=A4drich?= <11225821+shaedrich@users.noreply.github.com> Date: Thu, 26 Jun 2025 03:51:02 +0200 Subject: [PATCH] Linter --- .../ui/components/hashtag_menu_controller.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/javascript/mastodon/features/ui/components/hashtag_menu_controller.tsx b/app/javascript/mastodon/features/ui/components/hashtag_menu_controller.tsx index 7a3a1dcd13..0c552287e7 100644 --- a/app/javascript/mastodon/features/ui/components/hashtag_menu_controller.tsx +++ b/app/javascript/mastodon/features/ui/components/hashtag_menu_controller.tsx @@ -47,7 +47,8 @@ interface TargetParams { export const HashtagMenuController: React.FC = () => { const intl = useIntl(); const [open, setOpen] = useState(false); - const [{ accountId, hashtag, hashtagUrl }, setTargetParams] = useState({}); + const [{ accountId, hashtag, hashtagUrl }, setTargetParams] = + useState({}); const targetRef = useRef(null); const location = useLocation(); const account = useAppSelector((state) => @@ -78,9 +79,15 @@ export const HashtagMenuController: React.FC = () => { return; } - const hashtagUrl: URL = new URL('/filters', document.location.href) - hashtagUrl.searchParams.set('custom_filter[keywords_attributes][0][keyword]', target.text) - hashtagUrl.searchParams.set('custom_filter[keywords_attributes][0][whole_word]', '1') + const hashtagUrl: URL = new URL('/filters', document.location.href); + hashtagUrl.searchParams.set( + 'custom_filter[keywords_attributes][0][keyword]', + target.text, + ); + hashtagUrl.searchParams.set( + 'custom_filter[keywords_attributes][0][whole_word]', + '1', + ); e.preventDefault(); e.stopPropagation();