discourse/lib/onebox/engine/flickr_shortened_onebox.rb
Jarek Radosz 52e872961a
DEV: Clean up requires (#34946)
1. remove unnecessary `.rb` filename suffixes from `require_relative`
calls
2. replace `require File.expand_path(File.dirname(__FILE__) + …` with
`require_relative`
3. remove `./` prefixes from `require_relative` calls
2025-09-24 12:00:22 +02:00

20 lines
354 B
Ruby

# frozen_string_literal: true
require_relative "opengraph_image"
module Onebox
module Engine
class FlickrShortenedOnebox
include Engine
include StandardEmbed
include OpengraphImage
matches_domain("flic.kr")
always_https
def self.matches_path(path)
path.start_with?("/p/")
end
end
end
end