Make generic convo report dialog (#4085)

This commit is contained in:
Eric Bailey 2024-05-17 17:56:58 -05:00 committed by GitHub
parent 1cdcb3e6c3
commit 8b3bfb3cf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 117 additions and 66 deletions

View file

@ -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`),