14 lines
284 B
TypeScript
14 lines
284 B
TypeScript
|
import { isAccountFollowActivityValid } from './account'
|
||
|
import { isBaseActivityValid } from './misc'
|
||
|
|
||
|
function isUndoValid (activity: any) {
|
||
|
return isBaseActivityValid(activity, 'Undo') &&
|
||
|
(
|
||
|
isAccountFollowActivityValid(activity.object)
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export {
|
||
|
isUndoValid
|
||
|
}
|