summaryrefslogtreecommitdiff
path: root/settings
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@jolla.com>2026-02-10 22:10:07 +0100
committerAndrew Branson <andrew.branson@jolla.com>2026-02-10 22:10:07 +0100
commitff1c2efe40bf53c146b4a2e3b5046ae8ecb32264 (patch)
treed41858d63e9617780536631236a6ae8a07a39192 /settings
parentda91be4961962536c7ff021ec97674996a1cb8d0 (diff)
default server
Diffstat (limited to 'settings')
-rw-r--r--settings/accounts/ui/mastodon.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/settings/accounts/ui/mastodon.qml b/settings/accounts/ui/mastodon.qml
index 736e82e..758ed9b 100644
--- a/settings/accounts/ui/mastodon.qml
+++ b/settings/accounts/ui/mastodon.qml
@@ -14,6 +14,7 @@ AccountCreationAgent {
property bool _registering
readonly property string callbackUri: "http://ipv4.jolla.com/online/status.html"
+ readonly property string defaultApiHost: "https://mastodon.social"
function normalizeApiHost(rawHost) {
var host = rawHost ? rawHost.trim() : ""
@@ -148,12 +149,12 @@ AccountCreationAgent {
property string normalizedHost: root.normalizeApiHost(instanceField.text)
- canAccept: !root._registering && normalizedHost.length > 0
+ canAccept: !root._registering
acceptDestinationAction: PageStackAction.Push
acceptDestination: busyComponent
onAccepted: {
- root._pendingApiHost = normalizedHost
+ root._pendingApiHost = normalizedHost.length > 0 ? normalizedHost : root.defaultApiHost
}
DialogHeader {