Repository navigation
|
How do you load a remote instance's status via your own instance's API, the equivalent of pasting a status URL into the Mastodon search field so that your local instance then knows about it? Ultimately my goal is to boost an arbitrary status by its upstream URL, but the |
Replies: 1 comment
|
Use the search endpoint with Your instance fetches the status if it doesn't already have it, and returns its local copy. Two things to watch for:
I traced this through the Mastodon source and confirmed the 401 against mastodon.social, but I don't have an account to run the full search-and-boost myself. Let me know if it behaves differently on your instance. Hope this helps! |
Use the search endpoint with
resolve=true. It's the same call the web UI makes when it opens a pasted URL:Your instance fetches the status if it doesn't already have it, and returns its local copy.
statuses[0].idis the local ID the reblog endpoint needs:Two things to watch for:
resolveneeds a valid user token. With a missing or invalid one you get a 401: "Search queries that re…