Explicitly type variable

See https://github.com/mastodon/mastodon/actions/runs/15860724453
This commit is contained in:
Sebastian Hädrich 2025-06-25 13:25:55 +02:00 committed by GitHub
parent 70e595cb79
commit f70f096cae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,7 @@ export const HashtagMenuController: React.FC = () => {
return;
}
const hashtagUrl = new URL('/filters', document.location)
const hashtagUrl: URL = new URL('/filters', document.location)
hashtagUrl.searchParams.set('custom_filter[keywords_attributes][0][keyword]', target.text)
hashtagUrl.searchParams.set('custom_filter[keywords_attributes][0][whole_word]', 1)