Implement a /share endpoint #428
No reviewers
Labels
No labels
a11y
Bug
Bug fix
cannot reproduce
CSS
Documentation
enhancement
Feature
Feature request
Held for next release cycle
Minor change
performance
priority: critical
priority: high
priority: low
priority: medium
priority: patch welcome
regression
Translation/Locale
WIP
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AkkomaGang/akkoma-fe!428
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "CenTdemeern1/akkoma-fe:share"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR implements an endpoint for prefilling a specific message in the post form by reusing the otherwise broken
presetsystem implemented in462eeb90bfor things like share buttons.My motivation for making this PR is a relay/redirect service for fediverse links that I'm working on, that among other functionality, allows users to get redirected to their native instance while automatically picking the correct share endpoint for their instance software.
Akkoma and Pleroma seem to be the main platforms without a documented endpoint for this.
It would probably be even more optimal if the
presetfunctionality could be fixed, but I don't know how I would go about doing that.(It seems it's broken because the router is uninitialized or something when it's run? It always seems to think you're at
/)Feedback and suggestions for alternative approaches would be appreciated
This assumes the
/share?message={text}template instead of/share?text={text}adopted by Mastodon and most of other platforms?View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.