diff options
author | pdp8 <pdp8@pdp8.info> | 2023-07-30 15:07:28 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2023-07-30 15:07:28 +0200 |
commit | 3a8be7b1606885b3b94bc22a6d775a6527e1c07d (patch) | |
tree | 3aed49446c69d4a0c66e5f2eb6fca7ca181ef80e /activitypub.rb | |
parent | fbd4fccc70622e664e2f795315c848d68aed365e (diff) |
note parsing, tag links
Diffstat (limited to 'activitypub.rb')
-rw-r--r-- | activitypub.rb | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/activitypub.rb b/activitypub.rb deleted file mode 100644 index 8a62fdd..0000000 --- a/activitypub.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -require 'uri' -require 'base64' -require 'digest/sha2' -require 'sinatra' - -SOCIAL_DIR = '/srv/social/' -PUBLIC_DIR = File.join(SOCIAL_DIR, 'public') -PRIVATE_DIR = File.join(SOCIAL_DIR, 'private') - -FOLLOWERS = File.join(PUBLIC_DIR, 'followers.json') -FOLLOWING = File.join(PUBLIC_DIR, 'following.json') - -USER = 'pdp8' -SOCIAL_DOMAIN = 'social.pdp8.info' -MENTION = "#{USER}@#{SOCIAL_DOMAIN}" -WEBFINGER = File.join(PUBLIC_DIR, MENTION + '.json') - -SOCIAL_URL = "https://#{SOCIAL_DOMAIN}" -ACTOR = File.join(SOCIAL_URL, USER) -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') } -FOLLOWERS_URL = 'https://social.pdp8.info/followers' - -CONTENT_TYPE = 'application/activity+json' -# CONTENT_TYPE = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' - -enable :sessions -set :session_secret, File.read('.secret').chomp -set :default_content_type, CONTENT_TYPE -set :port, 9292 - -require_relative 'helpers' -require_relative 'server' -require_relative 'client' -require_relative 'create' |