Fix syndication check

This commit is contained in:
2023-01-29 13:08:40 +11:00
parent b30978543c
commit fa6d4a78f2

View File

@@ -5,7 +5,7 @@ module Adamantium
include Deps["settings", "syndication.mastodon"]
def call(post)
if post[:syndicate_to].any? { |url| settings.mastodon_server.match(/"#{url}"/) }
if post[:syndicate_to].any? { |url| settings.mastodon_server.match(/#{url}/) }
mastodon.call(post: post)
end
end