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
domainDomain to block.
severityWhether to apply a silence, suspend, or noop to the domain. Defaults to silence
rejectMediaWhether media attachments should be rejected. Defaults to false
rejectReportsWhether reports from this domain should be rejected. Defaults to false
privateCommentA private note about this domain block, visible only to admins.
publicCommentpublic note about this domain block, optionally shown on the about page.
obfuscateWhether to partially censor the domain when shown in public. Defaults to false
BlockDomainParams Structure Reference