Invalid `published` date in ActivityPub payload
Hi!
A Mastodon server administrator recently reported an issue with Mastodon failing to process a Hubzilla activity with the following error:
ERROR Statement #<RDF::Statement:0xa736e8c(<https://hub.redacted/activity/redacted> <https://www.w3.org/ns/activitystreams#published> "2023-02-06 13:55:08"^^<http://www.w3.org/2001/XMLSchema#dateTime> .)> is invalid
(This occurs when Mastodon tries to canonicalize the activity to check its Linked-Data Signature)
This seems to hint at the activity using the improperly-formatted 2023-02-06 13:55:08
(instead of something like 2023-02-06T13:55:08Z
) value for the published
field of the activity. However, fetching the activity JSON-LD by its URL (using the Accept: application/activity+json
header), the published
value is indeed 2023-02-06T13:55:08Z
.
There is a custom zot.activitypub.rawmsg
property with a version of the activity that has "published": "2023-02-06 13:55:08"
though, so maybe there is some discrepancy between what was fetched by URL, and what was sent to Mastodon by Hubzilla.
If that helps, the activity that had an invalid published
attribute in the zot.activitypub.rawmsg
was a Like
activity.