From 208273378adf90b27dd3f15633ae5270ede1fc01 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 1 Jun 2024 11:19:18 +1000 Subject: [PATCH] Return frim post updates --- slices/micropub/commands/posts/update.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slices/micropub/commands/posts/update.rb b/slices/micropub/commands/posts/update.rb index 36e3b87..33c5f55 100644 --- a/slices/micropub/commands/posts/update.rb +++ b/slices/micropub/commands/posts/update.rb @@ -26,7 +26,7 @@ module Micropub post_repo.update(post.id, attrs_to_replace) - Success() + return Success() end if params.key? :add @@ -50,7 +50,7 @@ module Micropub post_repo.tag_post(post_id: post.id, tags: tags) if tags && !tags.empty? add_syndication_source.call(post.id, syndication_source, syndication_url) if syndication_url && !syndication_url.empty? - Success() + return Success() end if params.key? :delete @@ -74,7 +74,7 @@ module Micropub post_repo.update(post.id, attrs) unless attrs.empty? end - Success() + return Success() end end end