|
@ -165,7 +165,7 @@ class FetchLinkCardService < BaseService |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def meta_property(page, property) |
|
|
def meta_property(page, property) |
|
|
page.at_xpath("//meta[@property=\"#{property}\"]")&.attribute('content')&.value || page.at_xpath("//meta[@name=\"#{property}\"]")&.attribute('content')&.value |
|
|
|
|
|
|
|
|
page.at_xpath("//meta[contains(concat(' ', normalize-space(@property), ' '), ' #{property} ')]")&.attribute('content')&.value || page.at_xpath("//meta[@name=\"#{property}\"]")&.attribute('content')&.value |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def lock_options |
|
|
def lock_options |
|
|