diff options
author | Eric Bailey <git@esb.lol> | 2024-05-17 17:56:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 17:56:58 -0500 |
commit | 8b3bfb3cf7459af59fb4535241a6251e35e88eb9 (patch) | |
tree | a6e013bb5b4f9f36ba04c3841fa43a2c688f9686 /src/lib/moderation | |
parent | 1cdcb3e6c333b7ad5aa53676163643d7f43d1528 (diff) | |
download | voidsky-8b3bfb3cf7459af59fb4535241a6251e35e88eb9.tar.zst |
Make generic convo report dialog (#4085)
Diffstat (limited to 'src/lib/moderation')
-rw-r--r-- | src/lib/moderation/useReportOptions.ts | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/lib/moderation/useReportOptions.ts b/src/lib/moderation/useReportOptions.ts index ff12534c2..6533004c4 100644 --- a/src/lib/moderation/useReportOptions.ts +++ b/src/lib/moderation/useReportOptions.ts @@ -15,7 +15,8 @@ interface ReportOptions { list: ReportOption[] feedgen: ReportOption[] other: ReportOption[] - message: ReportOption[] + convoMessage: ReportOption[] + convoAccount: ReportOption[] } export function useReportOptions(): ReportOptions { @@ -73,7 +74,20 @@ export function useReportOptions(): ReportOptions { }, ...common, ], - message: [ + convoMessage: [ + { + reason: ComAtprotoModerationDefs.REASONSPAM, + title: _(msg`Spam`), + description: _(msg`Excessive or unwanted messages`), + }, + { + reason: ComAtprotoModerationDefs.REASONSEXUAL, + title: _(msg`Unwanted Sexual Content`), + description: _(msg`Inappropriate messages or explicit links`), + }, + ...common, + ], + convoAccount: [ { reason: ComAtprotoModerationDefs.REASONSPAM, title: _(msg`Spam`), |