2019-01-15 05:14:12 -05:00
|
|
|
import { isActivityPubUrlValid } from './misc'
|
2017-11-22 10:25:03 -05:00
|
|
|
|
|
|
|
function isViewActivityValid (activity: any) {
|
2019-01-15 05:14:12 -05:00
|
|
|
return activity.type === 'View' &&
|
|
|
|
isActivityPubUrlValid(activity.actor) &&
|
|
|
|
isActivityPubUrlValid(activity.object)
|
2017-11-22 10:25:03 -05:00
|
|
|
}
|
2019-01-15 05:14:12 -05:00
|
|
|
|
2017-11-22 10:25:03 -05:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
export {
|
|
|
|
isViewActivityValid
|
|
|
|
}
|