feat(reports): show suspended status next to reported profile

And only show the suspend button if the profile isn't already suspended (or the user disabled)

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-08-31 18:39:04 +02:00
parent 4f530cabcf
commit b9a165a7fc
4 changed files with 27 additions and 7 deletions

View File

@@ -42,14 +42,17 @@ const REPORT_FRAGMENT = gql`
id
reported {
...ActorFragment
suspended
... on Person {
user {
id
disabled
}
}
}
reporter {
...ActorFragment
suspended
}
events {
id