Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP: Invalid object in Follow in Accept #1492

Open
Tamschi opened this issue Nov 15, 2024 · 3 comments
Open

AP: Invalid object in Follow in Accept #1492

Tamschi opened this issue Nov 15, 2024 · 3 comments
Labels
bug User-facing breakage and reliability issues within Bridgy Fed. now

Comments

@Tamschi
Copy link
Collaborator

Tamschi commented Nov 15, 2024

I enabled trace logging in GoToSocial and retried a follow. Looks like it's upset with this:

{
    "@context": "https://www.w3.org/ns/activitystreams",
    "actor": "https://bsky.brid.gy/ap/did:plc:inze6wrmsm7pjl7yta3oig77",
    "id": "https://bsky.brid.gy/convert/ap/did:plc:inze6wrmsm7pjl7yta3oig77/followers#accept-https://gotosocial.i.eta.st/users/eta/follow/01JYZNV5JJ9GP3QQTDJJG4HP5X",
    "object": {
        "actor": "https://gotosocial.i.eta.st/users/eta",
        "id": "https://gotosocial.i.eta.st/users/eta/follow/01JYZNV5JJ9GP3QQTDJJG4HP5X",
        "object": "did:plc:inze6wrmsm7pjl7yta3oig77",
        "to": "https://bsky.brid.gy/ap/did:plc:inze6wrmsm7pjl7yta3oig77",
        "type": "Follow",
        "url": "https://gotosocial.i.eta.st/users/eta#followed-did:plc:inze6wrmsm7pjl7yta3oig77"
    },
    "to": "https://www.w3.org/ns/activitystreams#Public",
    "type": "Accept"
}

I would hazard a guess that it's looking at the object property, and not the to (this seems to point in that direction: https://github.com/superseriousbusiness/gotosocial/blob/main/internal/typeutils/astointernal.go#L465). Putting a bsky DID in there is certainly interesting -- I'm surprised that doesn't cause more problems!

(edit: looking at the spec and what mastodon does, I'm not sure that's indeed compliant)

Originally posted by @eeeeeta in #1033 (comment)

@Tamschi Tamschi added the bug User-facing breakage and reliability issues within Bridgy Fed. label Nov 15, 2024
@Tamschi Tamschi changed the title AP: Invalid object.object in Follow (in Accept) AP: Invalid object in Follow (in Accept) Nov 15, 2024
@Tamschi Tamschi changed the title AP: Invalid object in Follow (in Accept) AP: Invalid object in Follow in Accept Nov 15, 2024
@Tamschi
Copy link
Collaborator Author

Tamschi commented Nov 15, 2024

This should have the original Follow's object, I'll see if I can find it.

@Tamschi
Copy link
Collaborator Author

Tamschi commented Nov 15, 2024

Unfortunately not, looks like it's a bit too indirect to be a really quick fix.

@snarfed
Copy link
Owner

snarfed commented Nov 16, 2024

Hah, funny! Yup, bug on our part, definitely not intentional. Will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug User-facing breakage and reliability issues within Bridgy Fed. now
Projects
None yet
Development

No branches or pull requests

2 participants