search for [domain]/s/[id] when opening individual status?
#1573
snarfed
started this conversation in
Development
Replies: 3 comments 4 replies
|
@snarfed I need more details on "when I log in with my service" part. You mean Bridgy Fed? How does that work? 🤔 |
1 reply
|
I URL-encoded these ids so they don't look like URIs, and Phanpy stopped doing this. Guess I'll stick with that for now. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hi @cheeaun et al! First off, thank you for building and maintaining Phanpy. It's awesome!
I'm experimenting with adding Mastodon API support to a non-Mastodon service (Bridgy Fed), and I'm using Phanpy to test it. That's going well, except I'm seeing an odd behavior when opening individual statuses.
When I log into Phanpy with a normal Mastodon account, and then I click on a status, Phanpy loads
/api/v1/statuses/[id]/context, then renders the status in a sidebar. However, when I log in with my service and click on a status, Phanpy loads/api/v2/search?q=fed.brid.gy/s/[id]&limit=1&resolve=trueinstead, shows the interstitial page below, and hangs.One difference is that my status
ids aren't integers, they're URLs. Does Phanpy handle integer and non-integerids differently? Mastodon's docs sayiddoesn't have to be a number, but I know in practice it is on Mastodon servers.I see this in Phanpy's source, which could be what's generating this search query format?
phanpy/src/utils/get-instance-status-url.js
Line 35 in 57870e3
Thanks in advance! cc @quillmatiq
All reactions