2026-10-01 11:25:05 +02:00
|
|
|
using MongoDB.Entities;
|
|
|
|
|
|
|
|
|
|
namespace PrivaPub.Models.Federation
|
|
|
|
|
{
|
|
|
|
|
public class DomainBlock : Entity
|
|
|
|
|
{
|
|
|
|
|
public string Domain { get; set; }
|
|
|
|
|
public DomainBlockSeverity Severity { get; set; }
|
|
|
|
|
public bool RejectMedia { get; set; }
|
|
|
|
|
public string PublicComment { get; set; }
|
|
|
|
|
public string PrivateComment { get; set; }
|
2026-10-17 04:02:47 +02:00
|
|
|
// listed at /api/v1/instance/domain_blocks, which tells the blocked server too (off by default); Obfuscate hides part
|
|
|
|
|
// of its name there, as Mastodon does
|
|
|
|
|
public bool Published { get; set; }
|
|
|
|
|
public bool Obfuscate { get; set; }
|
2026-10-01 11:25:05 +02:00
|
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum DomainBlockSeverity
|
|
|
|
|
{
|
|
|
|
|
None,
|
|
|
|
|
Silence,
|
|
|
|
|
Suspend
|
|
|
|
|
}
|
|
|
|
|
}
|