From 80eb0696d00eed555df790d53a0577c5e0fd5da5 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 29 Jan 2023 12:22:10 +1100 Subject: [PATCH] Respond with syndicatiopn config --- app/actions/site/config.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/actions/site/config.rb b/app/actions/site/config.rb index 9662286..21253ea 100644 --- a/app/actions/site/config.rb +++ b/app/actions/site/config.rb @@ -26,6 +26,17 @@ module Adamantium } ] }.to_json + elsif req.params[:q] == "syndicate-to" + res.status = 200 + res.content_type = "Application/JSON" + res.body = { + "syndicate-to" => [ + { + uid: "https://social.dnitza.com", + name: "Mastodon" + } + ] + }.to_json else res.render home end