summaryrefslogtreecommitdiff
path: root/activitypub.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.rb')
-rw-r--r--activitypub.rb4
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'