Browse Source

Add Mastodon version to user agent (#2253)

closed-social-glitch-2
ik-fib 7 years ago
committed by Eugen
parent
commit
47a3036ea6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/fetch_link_card_service.rb

+ 1
- 1
app/services/fetch_link_card_service.rb View File

@ -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

Loading…
Cancel
Save