rate.ts 352 B

12345678910111213
  1. import { isActivityPubUrlValid, isObjectValid } from './misc'
  2. function isDislikeActivityValid (activity: any) {
  3. return activity.type === 'Dislike' &&
  4. isActivityPubUrlValid(activity.actor) &&
  5. isObjectValid(activity.object)
  6. }
  7. // ---------------------------------------------------------------------------
  8. export {
  9. isDislikeActivityValid
  10. }