diff options
author | pdp8 <pdp8@pdp8.info> | 2023-07-12 14:49:22 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2023-07-12 14:49:22 +0200 |
commit | 2e614738f72c9af634c4a630693d06f144bc24df (patch) | |
tree | bbd9bf6d227d8dfe9e131e3c1307b58693a8a431 /activitypub.rb | |
parent | 7f38d569d8dd2491d1b9b8bc0ff1ae016b02f34f (diff) |
signed fetch for mastodon instances with AUTHORIZED_FETCH (e.g. mastodon.art)
Diffstat (limited to 'activitypub.rb')
-rw-r--r-- | activitypub.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.rb b/activitypub.rb index 93bb45a..aef92a7 100644 --- a/activitypub.rb +++ b/activitypub.rb @@ -7,7 +7,6 @@ require 'sinatra' SOCIAL_DIR = '/srv/social/' INBOX_DIR = File.join(SOCIAL_DIR, 'inbox') -# ARCHIVE_DIR = File.join(SOCIAL_DIR, 'archive') PUBLIC_DIR = File.join(SOCIAL_DIR, 'public') OUTBOX_DIR = File.join(PUBLIC_DIR, 'outbox') FOLLOWERS = File.join(PUBLIC_DIR, 'followers') @@ -25,7 +24,8 @@ FOLLOWING_URL = File.join(SOCIAL_URL, 'following') enable :sessions set :session_secret, File.read('.secret').chomp -set :default_content_type, 'application/activity+json' +# set :default_content_type, 'application/activity+json' +set :default_content_type, 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' set :port, 9292 require_relative 'helpers' |