瀏覽代碼

Naked domain

tags/v0.1.2
aeris 2 年之前
父節點
當前提交
99ac0f1be4
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      bin/mastodon-register

+ 3
- 2
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…
取消
儲存