-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
Can't Follow from pubgate #100
Comments
Looks like (I'm not familiar with Go) that writefreely expect that @context field should be list, and it is string |
Yep, that must be it. Thanks for the report, and the input! |
Is there anything I can do to help? This sounds like an issue in the upstream library rather than in writefreely directly, but I haven't actually dived in. |
I believe we need to change the type of |
That indeed sounds like a good start I seem to recall seeing different manifestations of the |
Right, it does occur as an array, especially with platforms like Mastodon. But changing the type to a plain |
indeed, 3 possibilities: https://www.w3.org/TR/activitystreams-core/#jsonld |
This is getting interesting. If there are three acceptable data structures to represent an activity context, I think if the web-core returns the list style we can make any changes needed here in writefreely. So maybe creating a named type for our web-core |
this extrapolates the unmarshaling of a remote actor into a new helper which accounts for the possibility of a context being a list or a single entity. i.e. a string or an object. basics tests are provided for both situations also go fmt'd the file activitypub.go
this moves the unmarshaling of a remote actor out into a new helper which accounts for the possibility of a context being a list or a single entity. i.e. a string or an object. basics tests are provided for both situations also go fmt'd the file activitypub.go
this moves the unmarshaling of a remote actor out into a new helper which accounts for the possibility of a context being a list or a single entity. i.e. a string or an object. basics tests are provided for both situations also go fmt'd the file activitypub.go
this moves the unmarshaling of a remote actor out into a new helper which accounts for the possibility of a context being a list or a single entity. i.e. a string or an object. basics tests are provided for both situations also go fmt'd the file activitypub.go
this moves the unmarshaling of a remote actor out into a new helper which accounts for the possibility of a context being a list or a single entity. i.e. a string or an object. basics tests are provided for both situations also go fmt'd the file activitypub.go
this moves the unmarshaling of a remote actor out into a new helper which accounts for the possibility of a context being a list or a single entity. i.e. a string or an object. basics tests are provided for both situations also go fmt'd the file activitypub.go
it's interesting too that there was a change in pubgate less than a month ago that fixed some issue with following, the change included going from a list of context values to a single string. autogestion/pubgate@c93945c#diff-ca148059ba63a1a73f527921dea53dc2 It would be nice to hear from @autogestion about this change as well. |
@robjloranger |
cool, thanks for the clarification @autogestion 💚 |
Meanwhile, do you use data extracted from |
We don't use the data right now, but since the field is there in the struct (for when we use it to send out ActivityStreams data), Go will try to parse it. I'm sure we could override this behavior, but I don't think that'd be the route to go. |
I'm not sure if this is a bug in writefreely or pubgate, but I get info in the logs of writefreely, so I'll start by posting here and ping @autogestion on it.
Example: I'm trying to follow 'https://qua.name/mrb' from an instance of https://github.com/autogestion/pubgate
The actor there is: https://activitypubbot.qua.name/ap_bot
ap_bot
is of type 'Service' but switching it to 'Person' makes no difference.The text was updated successfully, but these errors were encountered: