mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Improve AP actor checks
This commit is contained in:
parent
e587e0ecee
commit
12ba460e9e
5 changed files with 30 additions and 21 deletions
|
@ -29,6 +29,11 @@ async function processActivities (activities: Activity[], signatureActor?: Actor
|
|||
const actorsCache: { [ url: string ]: ActorModel } = {}
|
||||
|
||||
for (const activity of activities) {
|
||||
if (!signatureActor && [ 'Create', 'Announce', 'Like' ].indexOf(activity.type) === -1) {
|
||||
logger.error('Cannot process activity %s (type: %s) without the actor signature.', activity.id, activity.type)
|
||||
continue
|
||||
}
|
||||
|
||||
const actorUrl = getActorUrl(activity.actor)
|
||||
|
||||
// When we fetch remote data, we don't have signature
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue