This commit is contained in:
2023-02-25 13:29:26 +11:00
parent ff9106a40a
commit 2ea7ba1271

View File

@@ -6,6 +6,7 @@ module Adamantium
class CreateCheckin < Command
include Deps["repos.post_repo",
"post_utilities.slugify",
"logger",
renderer: "renderers.markdown",
add_post_syndication_source: "commands.posts.add_syndication_source"
]
@@ -17,6 +18,8 @@ module Adamantium
post_params = prepare_params(params: post)
created_post = post_repo.create(post_params)
logger.info("CREATED: #{created_post.inspect}")
syndication_sources.each do |url|
add_post_syndication_source.call(created_post.id, :swarm, url)
end