misskey icon indicating copy to clipboard operation
misskey copied to clipboard

Specifying forbidden words

Open PYU224 opened this issue 2 years ago • 14 comments

Summary

I want you to be able to set prohibited words because vandalism comes out.

PYU224 avatar Dec 03 '22 12:12 PYU224

I would like you to make it so that prohibited words cannot be posted or account registered, or that prohibited words can be replaced.

PYU224 avatar Dec 03 '22 12:12 PYU224

Why not just use Word Mute? If you don't even wanna see the note, you can set it as a "Hard" mute.

KawaneRio avatar Dec 03 '22 12:12 KawaneRio

I think this may cause unnecessary trouble for ordinary users, it should be set to specify the vocabulary, when detected in the local timeline can be submitted to the administrator for review, but at the same time the relevant content should be able to be published normally.

Why not just use Word Mute? If you don't even wanna see the note, you can set it as a "Hard" mute.

There may be problems such as harassment from gambling ads.

MomentQYC avatar Dec 03 '22 12:12 MomentQYC

Because I want to restrict some users from annoying other users by saying words they don't understand.

PYU224 avatar Dec 03 '22 12:12 PYU224

As an instance administrator, I know you want to set a forbidden word, and I agree with you that it would be a good idea to implement it.

tamaina avatar Dec 03 '22 12:12 tamaina

I'm not familiar with programming languages, so I would like to ask the people involved in the development of Misskey to implement prohibited word restrictions.

PYU224 avatar Dec 03 '22 12:12 PYU224

ローカルユーザーの投稿だけを検査するなら

  1. データベースのMetaエンティティに禁止ワード設定カラムを作る
  2. admin/update-metaで設定できるようにする
  3. notes/createでtext, cw, pollあたりを検査して禁止ワードがあったらエラーにして投稿できないようにする

の3つがあればいいと思うので割と簡単

tamaina avatar Dec 03 '22 12:12 tamaina

難しいですね・・・それにユーザーの名前も制限する必要があります。

PYU224 avatar Dec 03 '22 12:12 PYU224

ユーザーの名前の変更のAPIはi/update

tamaina avatar Dec 03 '22 12:12 tamaina

それはよく分からないのですがコンソールからDBにアクセスしていじれるんですか?

PYU224 avatar Dec 03 '22 13:12 PYU224

いいえ本体を改造してください

tamaina avatar Dec 03 '22 13:12 tamaina

(本体改造が面倒ならアンテナ機能で手動(もしくは自動)でいい感じにできるかもしれません)

tamaina avatar Dec 03 '22 13:12 tamaina

本体を改造する必要があるんですか? アンテナ機能とは検索しても出てこない機能ですね。調べてみます。

PYU224 avatar Dec 03 '22 13:12 PYU224

検索してまだ結果は出ませんが、上記のNGワードは要望として出しますね。

PYU224 avatar Dec 03 '22 13:12 PYU224

指定した文字列が含まれる投稿の公開範囲を自動でホームにする機能は実装された

syuilo avatar Mar 21 '23 02:03 syuilo

ありがとうございます。

PYU224 avatar Mar 26 '23 11:03 PYU224

問題なさそうでしたので、クローズさせていただきます。 何かありましたら、リオープンお願い致します。

t1nyb0x avatar Jan 24 '24 18:01 t1nyb0x

急遽実装された

tamaina avatar Feb 12 '24 19:02 tamaina

↑ #13207

KisaragiEffective avatar Feb 15 '24 05:02 KisaragiEffective