Standard rb fixes
This commit is contained in:
@@ -82,7 +82,7 @@ module Adamantium
|
||||
|
||||
halt 401 unless (decoded_response.include? :scope) && (decoded_response.include? :me)
|
||||
|
||||
decoded_response[:scope].gsub(/post/, "create").split.map(&:to_sym)
|
||||
decoded_response[:scope].gsub("post", "create").split.map(&:to_sym)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -36,8 +36,6 @@ module Adamantium
|
||||
code = url.scan(pattern).flatten.first
|
||||
if code
|
||||
"<div class='video-container'><iframe width='100%' src='https://www.youtube.com/embed/#{code}' title='YouTube video player' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share' allowfullscreen></iframe></div>"
|
||||
else
|
||||
nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -33,7 +33,7 @@ module Adamantium
|
||||
end
|
||||
ENV["TZ"] = nil
|
||||
|
||||
top_track_repo.for_post(id: post.id)
|
||||
top_track_repo.for_post(id: post.id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user