From e6e3dee896eeb37b404fa92ef61d487537bb87d3 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Thu, 21 Dec 2023 09:02:04 +1100 Subject: [PATCH] Update webmention creation response --- slices/micropub/actions/webmentions/create.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/slices/micropub/actions/webmentions/create.rb b/slices/micropub/actions/webmentions/create.rb index 9c6080e..e2de290 100644 --- a/slices/micropub/actions/webmentions/create.rb +++ b/slices/micropub/actions/webmentions/create.rb @@ -19,7 +19,10 @@ module Micropub reply[:post_id] = post.id webmentions_repo.create(reply) - res.status = 201 + res.body = { + "result": "Webmention was successful" + }.to_json + res.status = 202 in Failure(:invalid_request) res.status = 429 in Failure(:not_implemented)