Empty url field in Mastodon API on boosts #231

Closed
opened 2018-06-29 15:54:32 +00:00 by renatolond · 2 comments
Member

When querying the statuses of a pleroma account using the mastodon API, if I look at a boost the url field of the toot is empty. A similar status in Mastodon returns the url of the boost (in the format https://instance/@user/id), I believe it should return something like https://<pleroma instance>/objects/<uuid> instead.

When querying the statuses of a pleroma account using the mastodon API, if I look at a boost the `url` field of the toot is empty. A similar status in Mastodon returns the url of the boost (in the format `https://instance/@user/id`), I believe it should return something like `https://<pleroma instance>/objects/<uuid>` instead.
Owner

The url field for all statuses is currently empty because it is nullable (https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#status).
And mastodon seems to be using it for their frontend (which we have), I'll might try to fill it in few days. (either mastodon or pleroma-style URL, depending if pleroma-style makes mastofe crash/yell or not)

Anyway you should consider using the uri field, which is already there.

The `url` field for all statuses is currently empty because it is nullable (https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#status). And mastodon seems to be using it for their frontend (which we have), I'll might try to fill it in few days. (either mastodon or pleroma-style URL, depending if pleroma-style makes mastofe crash/yell or not) Anyway you should consider using the `uri` field, which is already there.
Author
Member

The uri field also seems to mean something different for Mastodon. In Mastodon I get back something like tag:mastodon.xyz,2017-08-11:objectId=6901463:objectType=Status.

The `uri` field also seems to mean something different for Mastodon. In Mastodon I get back something like `tag:mastodon.xyz,2017-08-11:objectId=6901463:objectType=Status`.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma#231
No description provided.