mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Add Mastodon version to user agent (#2253)
This commit is contained in:
parent
d2dc31a74a
commit
47a3036ea6
@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class FetchLinkCardService < BaseService
|
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)
|
def call(status)
|
||||||
# Get first http/https URL that isn't local
|
# Get first http/https URL that isn't local
|
||||||
|
Loading…
Reference in New Issue
Block a user