BlockDomainParams
public struct BlockDomainParams : Codable
Parameters to block a domain
-
Domain to block.
Declaration
Swift
public var domain: String
-
Whether to apply a silence, suspend, or noop to the domain. Defaults to silence
Declaration
Swift
public var severity: DomainBlockSeverity?
-
Whether media attachments should be rejected. Defaults to false
Declaration
Swift
public var rejectMedia: Bool?
-
Whether reports from this domain should be rejected. Defaults to false
Declaration
Swift
public var rejectReports: Bool?
-
A private note about this domain block, visible only to admins.
Declaration
Swift
public var privateComment: String?
-
A public note about this domain block, optionally shown on the about page.
Declaration
Swift
public var publicComment: String?
-
Whether to partially censor the domain when shown in public. Defaults to false
Declaration
Swift
public var obfuscate: Bool?
-
Declaration
Swift
public init(domain: String, severity: DomainBlockSeverity? = nil, rejectMedia: Bool? = nil, rejectReports: Bool? = nil, privateComment: String? = nil, publicComment: String? = nil, obfuscate: Bool? = nil)
Parameters
domain
Domain to block.
severity
Whether to apply a silence, suspend, or noop to the domain. Defaults to silence
rejectMedia
Whether media attachments should be rejected. Defaults to false
rejectReports
Whether reports from this domain should be rejected. Defaults to false
privateComment
A private note about this domain block, visible only to admins.
publicComment
public note about this domain block, optionally shown on the about page.
obfuscate
Whether to partially censor the domain when shown in public. Defaults to false