Standard rb fixes

This commit is contained in:
2023-10-31 08:17:10 +11:00
parent 1d43f6ca59
commit c1d756ec6f
9 changed files with 13 additions and 15 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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