diff --git a/slices/admin/commands/posts/de_syndicate.rb b/slices/admin/commands/posts/de_syndicate.rb index defd179..2921d71 100644 --- a/slices/admin/commands/posts/de_syndicate.rb +++ b/slices/admin/commands/posts/de_syndicate.rb @@ -13,7 +13,11 @@ module Admin request = if target.to_sym == :mastodon masto_id = post.syndication_sources[target].split("/").last - mastodon.de_syndicate(post_id: masto_id) + if masto_id == "" + Success() + else + mastodon.de_syndicate(post_id: masto_id) + end end if request.success?