diff --git a/js/src/components/Report/ReportCard.vue b/js/src/components/Report/ReportCard.vue index 3538b2535..18c6bca2f 100644 --- a/js/src/components/Report/ReportCard.vue +++ b/js/src/components/Report/ReportCard.vue @@ -5,7 +5,7 @@ >
-
+
-

{{ report.reported.name }}

-

+

+ {{ report.reported.name }} +

+

@{{ usernameWithDomain(report.reported) }}

+

{{ t("Unknown actor") }}

-

+

{{ t("Suspended") }}

@@ -31,7 +37,7 @@
- + {{ t("Reported by someone on {domain}", { domain: report.reporter.domain, @@ -40,19 +46,22 @@ {{ t("Reported by someone anonymously") }} - + {{ t("Reported by {reporter}", { reporter: usernameWithDomain(report.reporter), }) }} + + {{ t("Reported by an unknown actor") }} +
diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 492e68caf..fa50e35d2 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -1593,7 +1593,6 @@ "Event deleted": "Event deleted", "Comment deleted and report resolved": "Comment deleted and report resolved", "Comment under event {eventTitle}": "Comment under event {eventTitle}", - "Suspend profile": "Suspend profile", "Do you really want to suspend this profile? All of the profiles content will be deleted.": "Do you really want to suspend this profile? All of the profiles content will be deleted.", "There will be no way to restore the profile's data!": "There will be no way to restore the profile's data!", "Suspend the profile": "Suspend the profile", @@ -1602,5 +1601,9 @@ "There will be no way to restore the user's data!": "There will be no way to restore the user's data!", "User suspended and report resolved": "User suspended and report resolved", "Profile suspended and report resolved": "Profile suspended and report resolved", - "{profileName} (suspended)": "{profileName} (suspended)" + "{profileName} (suspended)": "{profileName} (suspended)", + "Reported by an unknown actor": "Reported by an unknown actor", + "Reported at": "Reported at", + "Updated at": "Updated at", + "Suspend the profile?": "Suspend the profile?" } \ No newline at end of file diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index 2de32e18e..8fc9568aa 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -1600,5 +1600,8 @@ "There will be no way to restore the user's data!": "Il n'y aura aucun moyen de restorer les données de l'utilisateur·ice !", "User suspended and report resolved": "Utilisateur suspendu et signalement résolu", "Profile suspended and report resolved": "Profil suspendu et signalement résolu", - "{profileName} (suspended)": "{profileName} (suspendu·e)" + "{profileName} (suspended)": "{profileName} (suspendu·e)", + "Reported by an unknown actor": "Signalé par un·e acteur·ice inconnu·e", + "Reported at": "Signalé à", + "Updated at": "Mis à jour à" } diff --git a/js/src/types/report.model.ts b/js/src/types/report.model.ts index ff79b36af..dc00599a3 100644 --- a/js/src/types/report.model.ts +++ b/js/src/types/report.model.ts @@ -14,7 +14,7 @@ export interface IReportNote extends IActionLogObject { } export interface IReport extends IActionLogObject { id: string; - reported: IActor; + reported: IActor | undefined; reporter: IPerson; events?: IEvent[]; comments: IComment[]; diff --git a/js/src/views/Moderation/ReportView.vue b/js/src/views/Moderation/ReportView.vue index 8b7b69f7d..40177b3b9 100644 --- a/js/src/views/Moderation/ReportView.vue +++ b/js/src/views/Moderation/ReportView.vue @@ -65,7 +65,7 @@
- + - + @@ -134,12 +134,20 @@ > + + + + - - - + - + @@ -187,7 +198,7 @@

{{ t("Report reason") }}

-
+
-
-

+

+

{{ report.reported.name }}

@{{ usernameWithDomain(report.reported) }}

+

{{ t("Unknown actor") }}

{{ t("Reported group") }}
{{ t("Reported identity") }}
+ {{ t("Reported identity") }} + + {{ t("Unknown actor") }} +
{{ t("Reported by") }} + {{ report.reporter.domain }} +
{{ t("Reported") }}{{ t("Reported at") }} {{ formatDateTimeString(report.insertedAt) }}
{{ t("Updated") }}{{ t("Updated at") }} {{ formatDateTimeString(report.updatedAt) }}