Browse Source

Naked domain

master
aeris 5 years ago
parent
commit
99ac0f1be4
  1. 5
      bin/mastodon-register

5
bin/mastodon-register

@ -3,11 +3,12 @@ require 'cross-post'
require 'mastodon'
require 'oauth2'
require 'launchy'
require 'uri'
config = CrossPost::Config.new
print 'Mastodon URL ? '
url = gets.strip
url = "https://#{url}" unless url.start_with? 'https://'
url = gets.chomp
url = "https://#{url}" if URI.parse(url).class == URI::Generic
config['mastodon.url'] = url
client_id, client_secret = unless config['mastodon.consumer']

Loading…
Cancel
Save