-
Notifications
You must be signed in to change notification settings - Fork 5
Supports opening twitter.com links directly #54
Comments
I think adding the option to open posts or users in view using the The question then is about how to design that uri-scheme and what it should support. Also, there are two things that needs to be consider before implementing this:
|
I think the user should choose a default account ( also email clients chose this approach ) and have the ability to change accounts easily ( many apps like telegram allow this thanks to a picker in the sidebar ) |
Cawbird 1 has the idea of your "default" account. So I've got three accounts on Cawbird (IBBoard, CawbirdClient and my test account). But when I run Although that still fails if you support opening multiple windows!
What? I assumed IDs were universal 😄 That's going to get confusing. Cawbird 1 has custom link formats for tweets and handles. Not proper URLs with a scheme, but still something that it can handle and pull the necessary info from. And it works because it only has to deal with Twitter links. But since Cawbird 2 has to differentiate Twitter from Mastodon, and Mastodon from another Mastodon server, could our scheme basically be |
NewCaw does not currently have an "default" account, on
Let's say we allow one default account, then we use the following:
Yes, they are different from server to server. Try opening
As you probably have seen when you tried the url above, on Mastodon you can pull public information (on most servers) without authentication. So with that way it could work. The issues are:
|
That logic seems sensible. Cawbird has "which window do we open?" logic that just picks the first account if there's more than one and none are set as "startup accounts".
Ah, yeah, I guess I wasn't thinking it through. That makes sense if it takes simple numbers. But I assumed that they would use something like snowflake IDs and so you wouldn't get the wrong post (which is what I thought you meant by "can we ensure that we get the correct post") but you might not get any post. And that it it was federated then it might still know the ID. But snowflakes assume certain knowledge about a data centre and location, which Mastodon won't have because there's no universal coordination between servers to say "I'm in region 1, data centre 5, and I'm server 42", so the uniqueness constraints of snowflake IDs fail. |
For example, FreeTube is a Linux frontend for Youtube that allow to open links directly in app, thanks to Privacy Redirect ( a browser extension ), As far as I know the extension convert the url into a uri supported by Freetube.
Adding more options to the uri protocol
cawbird://
is something that could be implemented, so other apps could call Cawbird using that.The text was updated successfully, but these errors were encountered: