summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/Following.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/models/Following.ts')
-rw-r--r--packages/backend/src/models/Following.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/backend/src/models/Following.ts b/packages/backend/src/models/Following.ts
index 8c9f965fad..607538b1e7 100644
--- a/packages/backend/src/models/Following.ts
+++ b/packages/backend/src/models/Following.ts
@@ -9,6 +9,7 @@ import { MiUser } from './User.js';
@Entity('following')
@Index(['followerId', 'followeeId'], { unique: true })
+@Index(['followeeId', 'followerHost', 'isFollowerHibernated'])
export class MiFollowing {
@PrimaryColumn(id())
public id: string;
@@ -45,6 +46,17 @@ export class MiFollowing {
@JoinColumn()
public follower: MiUser | null;
+ @Column('boolean', {
+ default: false,
+ })
+ public isFollowerHibernated: boolean;
+
+ // タイムラインにその人のリプライまで含めるかどうか
+ @Column('boolean', {
+ default: false,
+ })
+ public withReplies: boolean;
+
@Index()
@Column('varchar', {
length: 32,