diff options
author | ik-fib <ik11235@users.noreply.github.com> | 2017-04-22 00:26:23 +0900 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-21 17:26:23 +0200 |
commit | 47a3036ea6ade308c34b47301ddfe8196da6cf51 (patch) | |
tree | cf725b9f2f08d8c8e73ee08b641eb756f30420d7 /app | |
parent | d2dc31a74ad309a26e40de5ee4f92e37176a7abc (diff) |
Add Mastodon version to user agent (#2253)
Diffstat (limited to 'app')
-rw-r--r-- | app/services/fetch_link_card_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fetch_link_card_service.rb b/app/services/fetch_link_card_service.rb index 5ab781bfc..f24ebb82b 100644 --- a/app/services/fetch_link_card_service.rb +++ b/app/services/fetch_link_card_service.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class FetchLinkCardService < BaseService - USER_AGENT = "#{HTTP::Request::USER_AGENT} (Mastodon; +http://#{Rails.configuration.x.local_domain}/)" + USER_AGENT = "#{HTTP::Request::USER_AGENT} (Mastodon/#{Mastodon::VERSION}; +http://#{Rails.configuration.x.local_domain}/)" def call(status) # Get first http/https URL that isn't local |