mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Refractor activity pub lib/helpers
This commit is contained in:
parent
eb8b27c93e
commit
5414139835
47 changed files with 844 additions and 498 deletions
13
server/helpers/custom-validators/activitypub/undo.ts
Normal file
13
server/helpers/custom-validators/activitypub/undo.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { isAccountFollowActivityValid } from './account'
|
||||
import { isBaseActivityValid } from './misc'
|
||||
|
||||
function isUndoValid (activity: any) {
|
||||
return isBaseActivityValid(activity, 'Undo') &&
|
||||
(
|
||||
isAccountFollowActivityValid(activity.object)
|
||||
)
|
||||
}
|
||||
|
||||
export {
|
||||
isUndoValid
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue