From 2e614738f72c9af634c4a630693d06f144bc24df Mon Sep 17 00:00:00 2001 From: pdp8 Date: Wed, 12 Jul 2023 14:49:22 +0200 Subject: signed fetch for mastodon instances with AUTHORIZED_FETCH (e.g. mastodon.art) --- activitypub.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activitypub.rb') 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' -- cgit v1.2.3