Fix syndication check

This commit is contained in:
2023-01-29 12:55:54 +11:00
parent dd4340b05b
commit 93fc63207d

View File

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