summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/Instance.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-05-24 18:28:21 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-05-28 21:31:39 -0400
commit45e5749cca8ddf11ba01ab3d669cff9517045a3f (patch)
tree6c9f15aac52a1e5e270079075a2d909833e45927 /packages/backend/src/models/Instance.ts
parentadd IDX_instance_host_key (diff)
downloadsharkey-45e5749cca8ddf11ba01ab3d669cff9517045a3f.tar.gz
sharkey-45e5749cca8ddf11ba01ab3d669cff9517045a3f.tar.bz2
sharkey-45e5749cca8ddf11ba01ab3d669cff9517045a3f.zip
add instance properties for persisted block data
Diffstat (limited to 'packages/backend/src/models/Instance.ts')
-rw-r--r--packages/backend/src/models/Instance.ts50
1 files changed, 50 insertions, 0 deletions
diff --git a/packages/backend/src/models/Instance.ts b/packages/backend/src/models/Instance.ts
index 5d8108d423..0022e58933 100644
--- a/packages/backend/src/models/Instance.ts
+++ b/packages/backend/src/models/Instance.ts
@@ -99,6 +99,56 @@ export class MiInstance {
})
public suspensionState: 'none' | 'manuallySuspended' | 'goneSuspended' | 'autoSuspendedForNotResponding';
+ /**
+ * True if this instance is blocked from federation.
+ */
+ @Column('boolean', {
+ nullable: false,
+ default: false,
+ comment: 'True if this instance is blocked from federation.',
+ })
+ public isBlocked: boolean;
+
+ /**
+ * True if this instance is allow-listed.
+ */
+ @Column('boolean', {
+ nullable: false,
+ default: false,
+ comment: 'True if this instance is allow-listed.',
+ })
+ public isAllowListed: boolean;
+
+ /**
+ * True if this instance is part of the local bubble.
+ */
+ @Column('boolean', {
+ nullable: false,
+ default: false,
+ comment: 'True if this instance is part of the local bubble.',
+ })
+ public isBubbled: boolean;
+
+ /**
+ * True if this instance is silenced.
+ */
+ @Column('boolean', {
+ nullable: false,
+ default: false,
+ comment: 'True if this instance is silenced.',
+ })
+ public isSilenced: boolean;
+
+ /**
+ * True if this instance is media-silenced.
+ */
+ @Column('boolean', {
+ nullable: false,
+ default: false,
+ comment: 'True if this instance is media-silenced.',
+ })
+ public isMediaSilenced: boolean;
+
@Column('varchar', {
length: 64, nullable: true,
comment: 'The software of the Instance.',