Bug 464376

Summary: Support web+ap URIs
Product: [Applications] Tokodon Reporter: Soni L. <fakedme+kde>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: carl, josh
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Soni L. 2023-01-16 13:05:03 UTC
We would like to see the ability to open web+ap URIs in Tokodon. Thanks.
Comment 1 Soni L. 2023-01-16 13:06:36 UTC
(Oops forgot to mark as wishlist. Ah well. Someone else will have to fix that...)
Comment 2 Joshua Goins 2023-01-17 13:25:32 UTC
Do you have some good examples of where to find web+ap links? I also changed the importance to wishlist :-)
Comment 3 Soni L. 2023-01-17 13:39:50 UTC
We wrote the spec ( https://github.com/fedi-to/fedi-to.github.io/blob/main/webap.md ). Basically... just check if it starts with web+ap://, replace with https://, and look it up like how you'd open any other post, by URL, in the app.

The "reference implementation" (if it can be called that) is based around misskey and we're waiting for upstream on whether to release it, but otherwise yeah it's basically just that.
Comment 4 Joshua Goins 2023-01-17 14:22:54 UTC
> Basically... just check if it starts with web+ap://, replace with https://,
> and look it up like how you'd open any other post, by URL, in the app.

Perfect, thank you! It's nice that this is being standardized, it's definitely
something that's missing in the Fediverse. I'll work on implementing the
scheme in Tokodon soon.
Comment 5 Soni L. 2023-02-12 12:16:05 UTC
Any updates on this? We want to start shipping this in our apps (particularly, converting @foo@instance.example into a clickable web+ap link) and it'd be nice if we could say "compatible with Tokodon" or something on them.
Comment 6 Joshua Goins 2023-02-12 15:11:54 UTC
Unfortunately the maintainer has been, and I've had my hands full with life stuff as well. I haven't forgotten about the issue, but video and post editing took precedence the past couple of weeks :-)
Comment 7 Bug Janitor Service 2023-02-12 15:59:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/tokodon/-/merge_requests/150
Comment 8 Joshua Goins 2023-02-25 03:11:55 UTC
Git commit de9b21778eafaf9c9ca32d6b1c248255574aea97 by Joshua Goins.
Committed on 25/02/2023 at 03:08.
Pushed by redstrate into branch 'master'.

Support web+ap links

This requires a search to look up the local post (if any exists) on the
account's own server.

M  +1    -0    org.kde.tokodon.desktop
M  +2    -1    src/accountmanager.cpp
M  +20   -0    src/accountmanager.h
M  +12   -0    src/content/ui/main.qml
M  +18   -1    src/main.cpp
M  +57   -0    src/networkcontroller.cpp
M  +11   -0    src/networkcontroller.h
M  +4    -0    src/threadmodel.cpp

https://invent.kde.org/network/tokodon/commit/de9b21778eafaf9c9ca32d6b1c248255574aea97