Relax activity validation
This commit is contained in:
parent
241c3357d1
commit
3db9fadca7
|
@ -25,8 +25,7 @@ function isActivityPubUrlValid (url: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isBaseActivityValid (activity: any, type: string) {
|
function isBaseActivityValid (activity: any, type: string) {
|
||||||
return (activity['@context'] === undefined || Array.isArray(activity['@context'])) &&
|
return activity.type === type &&
|
||||||
activity.type === type &&
|
|
||||||
isActivityPubUrlValid(activity.id) &&
|
isActivityPubUrlValid(activity.id) &&
|
||||||
isObjectValid(activity.actor) &&
|
isObjectValid(activity.actor) &&
|
||||||
isUrlCollectionValid(activity.to) &&
|
isUrlCollectionValid(activity.to) &&
|
||||||
|
|
Loading…
Reference in New Issue