Moderation Module
Functions and values
| Function or value |
Description
|
Full Usage:
moderate prefs labels text tags languages isMuted isBlocked isBlockedBy isHiddenPost isMe target userDid context
Parameters:
ModerationPrefs
labels : Label list
text : string option
tags : string list
languages : string list
isMuted : bool
isBlocked : bool
isBlockedBy : bool
isHiddenPost : bool
isMe : bool
target : LabelTarget
userDid : string option
context : ModerationContext
Returns: ModerationDecision
|
Full moderation evaluation combining labels, muted words, mute status, block status, and hidden post status into a single decision for a given context.
|
Full Usage:
moderateContent prefs labels context
Parameters:
ModerationPrefs
labels : Label list
context : ModerationContext
Returns: ModerationDecision
|
Simplified moderation for content with just labels.
|
Full Usage:
moderateFeedGenerator prefs labels context
Parameters:
ModerationPrefs
labels : Label list
context : ModerationContext
Returns: ModerationDecision
|
Simplified moderation for a feed generator. Feed generators are moderated as content, checking labels applied to the feed itself.
|
Full Usage:
moderateLabels prefs labels target userDid
Parameters:
ModerationPrefs
labels : Label list
target : LabelTarget
userDid : string option
Returns: ModerationCause list
|
Evaluate labels against moderation preferences and produce causes.
|
Full Usage:
moderateLabelsWithCustom prefs labels target userDid customLabelMap
Parameters:
ModerationPrefs
labels : Label list
target : LabelTarget
userDid : string option
customLabelMap : Map<(string * string), LabelDefinition>
Returns: ModerationCause list
|
Evaluate labels using a custom label map (supports custom labeler definitions). The label map is created via Labels.createLabelMap.
|
Full Usage:
moderateMutedWords mutedWords text tags languages
Parameters:
MutedWord list
text : string
tags : string list
languages : string list
Returns: ModerationCause list
|
Evaluate muted words against text and tags.
|
Full Usage:
moderateNotification prefs labels isMuted isBlocked isBlockedBy
Parameters:
ModerationPrefs
labels : Label list
isMuted : bool
isBlocked : bool
isBlockedBy : bool
Returns: ModerationDecision
|
Simplified moderation for a notification. Notifications are moderated as content in a list context, primarily checking labels on the notification author and mute/block status.
|
Full Usage:
moderatePost prefs labels text tags languages isHiddenPost isMe userDid context
Parameters:
ModerationPrefs
labels : Label list
text : string
tags : string list
languages : string list
isHiddenPost : bool
isMe : bool
userDid : string option
context : ModerationContext
Returns: ModerationDecision
|
Simplified moderation for a post with text.
|
Full Usage:
moderateProfile prefs labels isMuted isBlocked isBlockedBy isMe context
Parameters:
ModerationPrefs
labels : Label list
isMuted : bool
isBlocked : bool
isBlockedBy : bool
isMe : bool
context : ModerationContext
Returns: ModerationDecision
|
Simplified moderation for a profile/account.
|
Full Usage:
moderateUserList prefs labels context
Parameters:
ModerationPrefs
labels : Label list
context : ModerationContext
Returns: ModerationDecision
|
Simplified moderation for a user list. User lists are moderated as content, checking labels applied to the list.
|
|