diff options
author | ThibG <thib@sitedethib.com> | 2018-05-18 17:20:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 17:20:32 +0200 |
commit | 625c4f36ef394215e65e19157bfaf60e7de94b5f (patch) | |
tree | 72560d046b60c8478d10f26c212a70870e50eb2d /lib | |
parent | 023dfa119ed43fe35188e560c24cd3091c14ad0b (diff) | |
parent | 765fc6700cefcf326e8e4104f7f82ac5ed9b9bea (diff) |
Merge pull request #490 from glitch-soc/merge-upstream
Merge with tootsuite @ 57b503d4ef0754e4651eae26b628cba60e1ab4e9
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mastodon/version.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb index 849b564e7..60f133085 100644 --- a/lib/mastodon/version.rb +++ b/lib/mastodon/version.rb @@ -48,5 +48,9 @@ module Mastodon source_base_url end end + + def user_agent + @user_agent ||= "#{HTTP::Request::USER_AGENT} (Mastodon/#{Version}; +http#{Rails.configuration.x.use_https ? 's' : ''}://#{Rails.configuration.x.web_domain}/)" + end end end |