Fix not updating a status when newer version is fetched manually (#17745)
This commit is contained in:
parent
883099f3c9
commit
ddbe906c25
6 changed files with 72 additions and 30 deletions
|
@ -15,6 +15,14 @@ module JsonLdHelper
|
|||
value.is_a?(Array) ? value.first : value
|
||||
end
|
||||
|
||||
def uri_from_bearcap(str)
|
||||
if str&.start_with?('bear:')
|
||||
Addressable::URI.parse(str).query_values['u']
|
||||
else
|
||||
str
|
||||
end
|
||||
end
|
||||
|
||||
# The url attribute can be a string, an array of strings, or an array of objects.
|
||||
# The objects could include a mimeType. Not-included mimeType means it's text/html.
|
||||
def url_to_href(value, preferred_type = nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue