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) {
|
||||
return (activity['@context'] === undefined || Array.isArray(activity['@context'])) &&
|
||||
activity.type === type &&
|
||||
return activity.type === type &&
|
||||
isActivityPubUrlValid(activity.id) &&
|
||||
isObjectValid(activity.actor) &&
|
||||
isUrlCollectionValid(activity.to) &&
|
||||
|
|
Loading…
Reference in New Issue