mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add ability to cleanup remote AP interactions
This commit is contained in:
parent
095e225804
commit
74d249bc13
24 changed files with 655 additions and 51 deletions
11
server/helpers/custom-validators/activitypub/share.ts
Normal file
11
server/helpers/custom-validators/activitypub/share.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { isBaseActivityValid, isObjectValid } from './misc'
|
||||
|
||||
function isShareActivityValid (activity: any) {
|
||||
return isBaseActivityValid(activity, 'Announce') &&
|
||||
isObjectValid(activity.object)
|
||||
}
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
isShareActivityValid
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue