Add syndication commands

This commit is contained in:
2023-01-29 11:47:47 +11:00
parent 01549d344f
commit 8c4fae3df5
4 changed files with 69 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
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