diff --git a/app/commands/posts/syndicate.rb b/app/commands/posts/syndicate.rb index 1035605..582399f 100644 --- a/app/commands/posts/syndicate.rb +++ b/app/commands/posts/syndicate.rb @@ -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