diff options
Diffstat (limited to 'src/instance.cpp')
-rw-r--r-- | src/instance.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/instance.cpp b/src/instance.cpp index 6b3443d..c5e9e22 100644 --- a/src/instance.cpp +++ b/src/instance.cpp @@ -23,8 +23,9 @@ namespace mastodonpp using std::move; -Instance::Instance(string instance, string access_token) - : _instance{move(instance)} +Instance::Instance(string hostname, string access_token) + : _hostname{move(hostname)} + , _baseuri{"https://" + _hostname} , _access_token{move(access_token)} {} |