Added in 25.02.
About Media Moderation
Media Moderation allows admins and moderators to moderate content with media such as images, videos, and attachments. When a member posts content with media, it is sent for moderation review based on this setting value.
You can set the media moderation for the following levels:
- Community
- Category
- Forum
- Blog
- KB
- Occasion (Event)
- Group
- Idea
Query to fetch the media moderation
Use the below query to fetch the media moderation for any node.
{
coreNode(id:"community:docscommunity") {
id
moderationSettings {
mediaModerationStyle {
value
}
}
moderationProperties {
mediaModerationStyle
}
}
}
The GraphQL response:
{
"data": {
"coreNode": {
"id": "community:docscommuntiy",
"moderationSettings": {
"mediaModerationStyle": {
"value": "POST"
}
},
"moderationProperties": {
"mediaModerationStyle": "POST"
}
}
}
}
Set the Media Moderation Setting at any place
Use the setModerationSettingsOnContainerNode
mutation to set the media moderation style for any place (node).
mutation {
setModerationSettingsOnContainerNode(
nodeId:"community:docscommunity",
settingsInput: {
mediaModerationStyle: PRE
}
) {
result
errors {
... on Error {
message
__typename
}
}
}
}
The GraphQL response:
{
"data": {
"setModerationSettingsOnContainerNode": {
"result": true,
"errors": null
}
}
}
ATLAS
Comments