1
0
Fork 0
peertube/server/helpers/custom-validators/activitypub/rate.ts

14 lines
352 B
TypeScript
Raw Normal View History

import { isActivityPubUrlValid, isObjectValid } from './misc'
2017-11-23 08:19:55 -05:00
function isDislikeActivityValid (activity: any) {
return activity.type === 'Dislike' &&
isActivityPubUrlValid(activity.actor) &&
isObjectValid(activity.object)
2017-11-23 08:19:55 -05:00
}
// ---------------------------------------------------------------------------
export {
isDislikeActivityValid
}