view.ts 336 B

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