Skip to content
Snippets Groups Projects
Commit 47a3036e authored by ik-fib's avatar ik-fib Committed by Eugen
Browse files

Add Mastodon version to user agent (#2253)

parent d2dc31a7
Branches
Tags
No related merge requests found
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment