From 93fc63207df23d7abc0ac87020282c32e8e35f40 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 29 Jan 2023 12:55:54 +1100 Subject: [PATCH] Fix syndication check --- app/commands/posts/syndicate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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