From a509c55faca368709044133199f71fb862b1e605 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Mon, 24 Jul 2023 02:46:05 +0200 Subject: html output removed --- activitypub.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'activitypub.rb') diff --git a/activitypub.rb b/activitypub.rb index f740406..90fe0c4 100644 --- a/activitypub.rb +++ b/activitypub.rb @@ -8,14 +8,9 @@ require 'sinatra' SOCIAL_DIR = '/srv/social/' PUBLIC_DIR = File.join(SOCIAL_DIR, 'public') PRIVATE_DIR = File.join(SOCIAL_DIR, 'private') -OUTBOX_DIR = File.join(PUBLIC_DIR, 'outbox') -TAGS_DIR = File.join(PUBLIC_DIR, 'tags') -OLD_INBOX = File.join(PRIVATE_DIR, 'inbox.json') FOLLOWERS = File.join(PUBLIC_DIR, 'followers.json') FOLLOWING = File.join(PUBLIC_DIR, 'following.json') -# OLD_OUTBOX = File.join(PUBLIC_DIR, 'outbox.json') -# SHARED = File.join(PUBLIC_DIR, 'shared.json') USER = 'pdp8' SOCIAL_DOMAIN = 'social.pdp8.info' @@ -24,10 +19,9 @@ WEBFINGER = File.join(PUBLIC_DIR, MENTION + '.json') SOCIAL_URL = "https://#{SOCIAL_DOMAIN}" ACTOR = File.join(SOCIAL_URL, USER) -# OLD_OUTBOX_URL = File.join(SOCIAL_URL, 'outbox') -TAGS_URL = File.join(SOCIAL_URL, 'tags') INBOX = { dir: File.join(SOCIAL_DIR, 'inbox') } OUTBOX = { dir: File.join(SOCIAL_DIR, 'outbox'), url: File.join(SOCIAL_URL, 'outbox') } +TAGS = { dir: File.join(PUBLIC_DIR, 'tags'), url: File.join(SOCIAL_URL, 'tags') } CONTENT_TYPE = 'application/activity+json' # CONTENT_TYPE = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' @@ -38,5 +32,6 @@ set :default_content_type, CONTENT_TYPE set :port, 9292 require_relative 'helpers' -require_relative 'client' require_relative 'server' +require_relative 'client' +require_relative 'send' -- cgit v1.2.3