07:50:22
2024-02-16 22:43:08 のえるの投稿 noellabo@fedibird.com
icon

ちょうど Mastodon v4.2.7 がリリースされたところですので、それに対するパッチを出しておきます。

リモートから届いた、あるいはブーストや検索等でfetchしたCreate Activityのcontentに対し正規表現でマッチしたものを拒否する機能を追加するものです。

要するにサーバレベルのリモート投稿フィルタです。

github.com/fedibird/mastodon/t

手順はざっくりこんな感じ。

sudo -iu mastodon
cd live
git fetch github.com/fedibird/mastodon add-reject-pattern-to-admin-setting-v4.2.7
git reset --hard FETCH_HEAD

RAILS_ENV=production bundle install
RAILS_ENV=production yarn install --frozen-lockfile
exit
sudo systemctl restart mastodon-*

データベーススキーマなどには影響しないので、いつでもv4.2.7に安全に戻せます。必要な方はどうぞ。

Web site image
GitHub - fedibird/mastodon at add-reject-pattern-to-admin-setting-v4.2.7
Web site image
GitHub - fedibird/mastodon: Mastodonの機能開発への貢献と、様々な理由で標準搭載されていない機能を共有するためのリポジトリです。
Reject Pattern
Attach image