From dc0b556e892505b023ab1f7a5c4a6fb70af7dcb7 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 31 Aug 2020 17:49:21 -0400 Subject: [PATCH] Fix error when persisting actors w/o display name --- lib/entity/Actor.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/entity/Actor.ts b/lib/entity/Actor.ts index 708d40b..72a5c74 100644 --- a/lib/entity/Actor.ts +++ b/lib/entity/Actor.ts @@ -11,17 +11,17 @@ export default class Actor { @Column({ type: "json" }) actorObject: ActorObject; - @Column() + @Column({ default: false }) isFollower: boolean; - @Column() - displayName: string; + @Column({ nullable: true }) + displayName: string | null; @Column() inbox: string; - @Column() - iconURL: string; + @Column({ nullable: true }) + iconURL: string | null; @Column({ nullable: true }) publicKeyPem: string | null;