diff options
author | pdp8 <pdp8@pdp8.info> | 2023-07-21 00:52:49 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2023-07-21 00:52:49 +0200 |
commit | 711bf7f86daddd0209244f9640d8a3f27d958e3a (patch) | |
tree | 402b51a8a12d51173f954f9a10f1fe92f200e72f /activitypub.rb | |
parent | edf5c00313b42308271fdad84a003b78a9483fc8 (diff) |
inbox and outbox unified
Diffstat (limited to 'activitypub.rb')
-rw-r--r-- | activitypub.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/activitypub.rb b/activitypub.rb index 5148a27..f740406 100644 --- a/activitypub.rb +++ b/activitypub.rb @@ -11,12 +11,11 @@ PRIVATE_DIR = File.join(SOCIAL_DIR, 'private') OUTBOX_DIR = File.join(PUBLIC_DIR, 'outbox') TAGS_DIR = File.join(PUBLIC_DIR, 'tags') -INBOX = File.join(PRIVATE_DIR, 'inbox.json') +OLD_INBOX = File.join(PRIVATE_DIR, 'inbox.json') FOLLOWERS = File.join(PUBLIC_DIR, 'followers.json') FOLLOWING = File.join(PUBLIC_DIR, 'following.json') -OUTBOX = File.join(PUBLIC_DIR, 'outbox.json') -SHARED = File.join(PUBLIC_DIR, 'shared.json') -# VISITED = File.join(PRIVATE_DIR, 'visited') +# OLD_OUTBOX = File.join(PUBLIC_DIR, 'outbox.json') +# SHARED = File.join(PUBLIC_DIR, 'shared.json') USER = 'pdp8' SOCIAL_DOMAIN = 'social.pdp8.info' @@ -25,8 +24,10 @@ WEBFINGER = File.join(PUBLIC_DIR, MENTION + '.json') SOCIAL_URL = "https://#{SOCIAL_DOMAIN}" ACTOR = File.join(SOCIAL_URL, USER) -OUTBOX_URL = File.join(SOCIAL_URL, 'outbox') +# 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') } CONTENT_TYPE = 'application/activity+json' # CONTENT_TYPE = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' |