feat: add setting to hide blocked term automod messages (#5690)

This commit is contained in:
pajlada
2024-11-05 21:04:45 +01:00
committed by GitHub
parent d92b24b8a1
commit 46c1f18ae7
13 changed files with 88 additions and 35 deletions
@@ -15,6 +15,10 @@ PubSubAutoModQueueMessage::PubSubAutoModQueueMessage(const QJsonObject &root)
this->type = oType.value();
}
this->reason =
qmagicenum::enumCast<Reason>(data.value("reason_code").toString())
.value_or(Reason::INVALID);
auto contentClassification =
data.value("content_classification").toObject();