Security fixes
This commit is contained in:
@@ -3,16 +3,16 @@ module Micropub
|
||||
module Posts
|
||||
class SyndicationUrlToSource
|
||||
def call(url:)
|
||||
if url.match("https://social.dnitza.com")
|
||||
if url.match?(/https:\/\/((social)\.)dnitza.com/)
|
||||
return :mastodon
|
||||
end
|
||||
|
||||
if url.match("https://bsky.social")
|
||||
if url.match?("https://bsky.social")
|
||||
return :bluesky
|
||||
end
|
||||
|
||||
if url.match("https://gist.github.com")
|
||||
return :gist
|
||||
if url.match?(/https:\/\/((gist)\.)?github\.com/)
|
||||
:gist
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user