Skip to content

Commit

Permalink
fix header
Browse files Browse the repository at this point in the history
  • Loading branch information
pessi-v committed Jun 14, 2024
1 parent 552fef2 commit 8823360
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/controllers/federation_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
class FederationController < ApplicationController
def webfinger
response.headers['Access-Control-Allow-Origin'] = "*"
render json: JSON.generate(
{
"subject": "acct:#{ENV.fetch('FEDIVERSE_USER_NAME').gsub('@', '')}@#{URI.parse(ENV.fetch('APP_URL')).host}",
Expand All @@ -19,12 +18,11 @@ def webfinger
# "href":"#{ENV.fetch('APP_URL')}/"
# }
]
}
), content_type: 'application/activity+json'
}),
content_type: 'application/jrd+json'
end

def fediverse_user
response.headers['Access-Control-Allow-Origin'] = "*"

render json: JSON.generate(
{
Expand Down

0 comments on commit 8823360

Please sign in to comment.