Skip to content

Two objects sharing the same ID inside an actor #663

@evanp

Description

@evanp

When testing with Fedify, I'm seeing actors like the attached. There are two objects with the same id but different types: the publicKey property with type CryptographicKey, and the assertionMethod property's first value, with a Multikey type.

I don't think that's valid JSON-LD; it's definitely not valid ActivityPub. Each object should have a unique, dereferenceable id value.

I'm working around this by special-casing the #main-key fragment ID to always choose a publicKey if it's available, but it would be good to give these two objects separate IDs. If they're the same object (are they?), it might be better to have a separate endpoint with multiple types.

fedify-actor.json

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions