Update documentation for share URLs
This commit is contained in:
parent
5c032ac8ee
commit
c78d7a471b
|
@ -3,11 +3,12 @@ function getFinalURL(domain, text, link) {
|
|||
var url = ''
|
||||
if ((domain === 'elk.zone') || (domain === 'main.elk.zone')) {
|
||||
// Elk web app
|
||||
// Documentation: https://github.com/elk-zone/elk/blob/main/modules/pwa/i18n.ts#:~:text=share_target
|
||||
url = 'https://elk.zone/intent/post?text=' + encodeURIComponent(text + '<br /><br />' + link)
|
||||
} else {
|
||||
// Standard Mastodon URL intent, also used by Calckey, Misskey, and other projects
|
||||
// Standard Mastodon URL intent, also used by Firefish/Calckey, Misskey, and other projects
|
||||
// Misskey documentation: https://misskey-hub.net/en/docs/features/share-form.html
|
||||
// Calckey implementation: https://codeberg.org/calckey/calckey/src/branch/main/packages/backend/src/server/web/manifest.json#:~:text=share_target
|
||||
// Firefish/Calckey implementation: https://codeberg.org/firefish/firefish/src/branch/main/packages/backend/src/server/web/manifest.json#:~:text=share_target
|
||||
url = 'https://' + domain + '/share?text=' + encodeURIComponent(text + '\n\n' + link)
|
||||
}
|
||||
return url
|
||||
|
|
Loading…
Reference in New Issue