mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-15 08:48:15 +00:00
Linter
This commit is contained in:
parent
1e672ae66e
commit
f9f7018639
|
@ -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<TargetParams>({});
|
||||
const [{ accountId, hashtag, hashtagUrl }, setTargetParams] =
|
||||
useState<TargetParams>({});
|
||||
const targetRef = useRef<HTMLAnchorElement | null>(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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user