2019-01-15 04:14:12 -06:00
|
|
|
import { isActivityPubUrlValid, isObjectValid } from './misc'
|
2017-11-23 07:19:55 -06:00
|
|
|
|
|
|
|
function isDislikeActivityValid (activity: any) {
|
2019-01-15 04:14:12 -06:00
|
|
|
return activity.type === 'Dislike' &&
|
|
|
|
isActivityPubUrlValid(activity.actor) &&
|
|
|
|
isObjectValid(activity.object)
|
2017-11-23 07:19:55 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
export {
|
|
|
|
isDislikeActivityValid
|
|
|
|
}
|