From 0fda2ab4a766ec1364450e795154805382190ada Mon Sep 17 00:00:00 2001 From: pessi-v Date: Fri, 14 Jun 2024 16:21:10 +0200 Subject: [PATCH] fix header --- app/controllers/federation_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/federation_controller.rb b/app/controllers/federation_controller.rb index 9e5c594..99b5fe4 100644 --- a/app/controllers/federation_controller.rb +++ b/app/controllers/federation_controller.rb @@ -20,7 +20,7 @@ def webfinger # } ] } - ), content_type: 'application/ld+json; profile="https://www.w3.org/ns/activitystreams' + ), content_type: 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' end def fediverse_user @@ -35,7 +35,7 @@ def fediverse_user # "followers": "https://hachyderm.io/users/mapache/followers", "inbox": fediverse_inbox_url, "outbox": "#{ENV.fetch('APP_URL')}/outbox", - "preferredUsername": 'aggregator', + "preferredUsername": ENV.fetch('FEDIVERSE_USER_NAME'), "name": ENV.fetch('APP_NAME'), "summary": ENV.fetch('APP_SHORT_DESCRIPTION'), "url": ENV.fetch('APP_URL'),