ConnectApi.ModerationFlags

Information about the moderation flags on a feed item, comment, or file.

NameTypeDescriptionAvailable Version
flagCountIntegerNumber of moderation flags on this feed item, comment, or file. If the context user is not a moderator, the property is null.29.0
flagCount​ByReasonMap<ConnectApi.​CommunityFlag​ReasonType, Integer>Number of moderation flags categorized by reason. Values for ConnectApi.CommunityFlagReasonType are:
  • FlaggedByRule—Moderation rule flagged the item.
  • FlaggedBySystem—Einstein flagged the item.
  • FlaggedByUserAsInappropriate—User flagged the item as inappropriate.
  • FlaggedByUserAsSpam—User flagged the item as spam.
40.0
flaggedByMeBooleantrue if the context user flagged the feed item, comment, or file for moderation; false otherwise.29.0
flagsConnectApi.ModerationFlagsCollectionCollection of flags.40.0

See Also