mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-07 02:22:49 +08:00
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
20 lines
354 B
Ruby
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
|