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

14 lines
284 B
TypeScript
Raw Normal View History

2017-11-20 03:43:39 -05:00
import { isAccountFollowActivityValid } from './account'
import { isBaseActivityValid } from './misc'
function isUndoValid (activity: any) {
return isBaseActivityValid(activity, 'Undo') &&
(
isAccountFollowActivityValid(activity.object)
)
}
export {
isUndoValid
}