feat(reports): allow reports to hold multiple events
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -20,7 +20,7 @@ export const REPORTS = gql`
|
||||
...ActorFragment
|
||||
suspended
|
||||
}
|
||||
event {
|
||||
events {
|
||||
id
|
||||
uuid
|
||||
title
|
||||
@@ -46,7 +46,7 @@ const REPORT_FRAGMENT = gql`
|
||||
reporter {
|
||||
...ActorFragment
|
||||
}
|
||||
event {
|
||||
events {
|
||||
id
|
||||
uuid
|
||||
title
|
||||
@@ -97,14 +97,14 @@ export const REPORT = gql`
|
||||
|
||||
export const CREATE_REPORT = gql`
|
||||
mutation CreateReport(
|
||||
$eventId: ID
|
||||
$eventsIds: [ID]
|
||||
$reportedId: ID!
|
||||
$content: String
|
||||
$commentsIds: [ID]
|
||||
$forward: Boolean
|
||||
) {
|
||||
createReport(
|
||||
eventId: $eventId
|
||||
eventsIds: $eventsIds
|
||||
reportedId: $reportedId
|
||||
content: $content
|
||||
commentsIds: $commentsIds
|
||||
|
||||
Reference in New Issue
Block a user