Compare commits

..

1 Commits

Author SHA1 Message Date
Shadowfacts 77ee132983
Fix errors on actors missing public keys 2020-04-15 13:13:52 -04:00
2 changed files with 4 additions and 4 deletions

View File

@ -56,8 +56,8 @@ export interface ActorObject {
endpoints?: { endpoints?: {
sharedInbox?: string; sharedInbox?: string;
} }
publicKey: { publicKey?: {
publicKeyPem: string; publicKeyPem?: string;
}; };
icon: string | object | (string | object)[]; icon: string | object | (string | object)[];
} }

View File

@ -23,8 +23,8 @@ export default class Actor {
@Column() @Column()
iconURL: string; iconURL: string;
@Column() @Column({ nullable: true })
publicKeyPem: string; publicKeyPem: string | null;
@OneToMany(type => Note, note => note.actor) @OneToMany(type => Note, note => note.actor)
notes: Note[]; notes: Note[];