aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/activitypub
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/activitypub')
-rw-r--r--server/models/activitypub/actor.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/models/activitypub/actor.ts b/server/models/activitypub/actor.ts
index b7be9c32c..408d4df23 100644
--- a/server/models/activitypub/actor.ts
+++ b/server/models/activitypub/actor.ts
@@ -155,7 +155,8 @@ export class ActorModel extends Model<ActorModel> {
155 foreignKey: { 155 foreignKey: {
156 allowNull: true 156 allowNull: true
157 }, 157 },
158 onDelete: 'set null' 158 onDelete: 'set null',
159 hooks: true
159 }) 160 })
160 Avatar: AvatarModel 161 Avatar: AvatarModel
161 162
@@ -194,7 +195,8 @@ export class ActorModel extends Model<ActorModel> {
194 foreignKey: { 195 foreignKey: {
195 allowNull: true 196 allowNull: true
196 }, 197 },
197 onDelete: 'cascade' 198 onDelete: 'cascade',
199 hooks: true
198 }) 200 })
199 Account: AccountModel 201 Account: AccountModel
200 202
@@ -202,7 +204,8 @@ export class ActorModel extends Model<ActorModel> {
202 foreignKey: { 204 foreignKey: {
203 allowNull: true 205 allowNull: true
204 }, 206 },
205 onDelete: 'cascade' 207 onDelete: 'cascade',
208 hooks: true
206 }) 209 })
207 VideoChannel: VideoChannelModel 210 VideoChannel: VideoChannelModel
208 211