Files
adamantium/app/commands/posts/syndicate.rb
2023-01-29 12:43:00 +11:00

16 lines
315 B
Ruby

module Adamantium
module Commands
module Posts
class Syndicate
include Deps["settings", "syndication.mastodon"]
def call(post)
if post[:syndicate_to].include? settings.mastodon_server
mastodon.call(post: post)
end
end
end
end
end
end