We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
インスタンスブロック(blockedHosts)の検査をもう少し広範にする 現状、インスタンスブロック設定はblockedHosts.includes(targetHost)のように検査されており、ワイルドカード等には非対応で等しいものしかブロックできない。
blockedHosts.includes(targetHost)
blockedHosts.someでendsWithとかincludesなどで検査するようにしたい。
The text was updated successfully, but these errors were encountered:
mastodon/mastodon#11558
MastodonはendsWithっぽい
Sorry, something went wrong.
SQLのWhereでNOT blockedHosts.some(x => x.endsWith(targetHost))ってどうやって表現するんだろう
blockedHosts.some(x => x.endsWith(targetHost))
FoundKeyだとRegExpでゴニョゴニョやってるわね
https://akkoma.dev/FoundKeyGang/FoundKey/src/commit/18cf228f893806e690be37729c75d66b32080784/packages/backend/src/misc/skipped-instances.ts
https://akkoma.dev/FoundKeyGang/FoundKey/pulls/269/files
FoundKey、RegExp(ワイルドカード)やめるらしいぜ
Successfully merging a pull request may close this issue.
Summary
インスタンスブロック(blockedHosts)の検査をもう少し広範にする
現状、インスタンスブロック設定は
blockedHosts.includes(targetHost)
のように検査されており、ワイルドカード等には非対応で等しいものしかブロックできない。blockedHosts.someでendsWithとかincludesなどで検査するようにしたい。
The text was updated successfully, but these errors were encountered: