diff options
Diffstat (limited to 'server/helpers/custom-validators/activitypub')
-rw-r--r-- | server/helpers/custom-validators/activitypub/activity.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/activitypub/activity.ts b/server/helpers/custom-validators/activitypub/activity.ts index 46126da57..69558e358 100644 --- a/server/helpers/custom-validators/activitypub/activity.ts +++ b/server/helpers/custom-validators/activitypub/activity.ts | |||
@@ -41,7 +41,7 @@ const activityCheckers: { [ P in ActivityType ]: (activity: Activity) => boolean | |||
41 | } | 41 | } |
42 | 42 | ||
43 | function isActivityValid (activity: any) { | 43 | function isActivityValid (activity: any) { |
44 | const checker = activityCheckers[activity.tswype] | 44 | const checker = activityCheckers[activity.type] |
45 | // Unknown activity type | 45 | // Unknown activity type |
46 | if (!checker) return false | 46 | if (!checker) return false |
47 | 47 | ||