Send web mentions in the background

This commit is contained in:
2023-09-24 15:23:39 +10:00
parent a9aa16da8b
commit d9715bf9ac
4 changed files with 31 additions and 12 deletions

View File

@@ -23,9 +23,9 @@ module Adamantium
syndicate.call(created_post.id, post)
# decorated_post = Decorators::Posts::Decorator.new(created_post)
decorated_post = Decorators::Posts::Decorator.new(created_post)
# send_webmentions.call(post_content: attrs[:content], post_url: decorated_post.permalink)
send_webmentions.call(post_content: created_post.content, post_url: decorated_post.permalink)
Success(created_post)
end