aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-30 09:40:21 +0200
committerChocobozzz <me@florianbigard.com>2019-08-30 09:40:32 +0200
commit0b5c385b4529f3bef8f9523de3f9470ffa58f5f5 (patch)
treef8110a8fc9aaea1572d75749df15cfd57ce36914 /server/models
parent4b1f1b810a50829be8d8998cdd4d296143e34f2e (diff)
downloadPeerTube-0b5c385b4529f3bef8f9523de3f9470ffa58f5f5.tar.gz
PeerTube-0b5c385b4529f3bef8f9523de3f9470ffa58f5f5.tar.zst
PeerTube-0b5c385b4529f3bef8f9523de3f9470ffa58f5f5.zip
Handle reports from mastodon
Diffstat (limited to 'server/models')
-rw-r--r--server/models/activitypub/actor.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/models/activitypub/actor.ts b/server/models/activitypub/actor.ts
index fb4327e4f..67a1b5bc1 100644
--- a/server/models/activitypub/actor.ts
+++ b/server/models/activitypub/actor.ts
@@ -175,8 +175,8 @@ export class ActorModel extends Model<ActorModel> {
175 @Column(DataType.STRING(CONSTRAINTS_FIELDS.ACTORS.URL.max)) 175 @Column(DataType.STRING(CONSTRAINTS_FIELDS.ACTORS.URL.max))
176 inboxUrl: string 176 inboxUrl: string
177 177
178 @AllowNull(false) 178 @AllowNull(true)
179 @Is('ActorOutboxUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'outbox url')) 179 @Is('ActorOutboxUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'outbox url', true))
180 @Column(DataType.STRING(CONSTRAINTS_FIELDS.ACTORS.URL.max)) 180 @Column(DataType.STRING(CONSTRAINTS_FIELDS.ACTORS.URL.max))
181 outboxUrl: string 181 outboxUrl: string
182 182
@@ -185,13 +185,13 @@ export class ActorModel extends Model<ActorModel> {
185 @Column(DataType.STRING(CONSTRAINTS_FIELDS.ACTORS.URL.max)) 185 @Column(DataType.STRING(CONSTRAINTS_FIELDS.ACTORS.URL.max))
186 sharedInboxUrl: string 186 sharedInboxUrl: string
187 187
188 @AllowNull(false) 188 @AllowNull(true)
189 @Is('ActorFollowersUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'followers url')) 189 @Is('ActorFollowersUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'followers url', true))
190 @Column(DataType.STRING(CONSTRAINTS_FIELDS.ACTORS.URL.max)) 190 @Column(DataType.STRING(CONSTRAINTS_FIELDS.ACTORS.URL.max))
191 followersUrl: string 191 followersUrl: string
192 192
193 @AllowNull(false) 193 @AllowNull(true)
194 @Is('ActorFollowingUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'following url')) 194 @Is('ActorFollowingUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'following url', true))
195 @Column(DataType.STRING(CONSTRAINTS_FIELDS.ACTORS.URL.max)) 195 @Column(DataType.STRING(CONSTRAINTS_FIELDS.ACTORS.URL.max))
196 followingUrl: string 196 followingUrl: string
197 197