summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2024-05-03 11:57:42 +0200
committerpdp8 <pdp8@pdp8.info>2024-05-03 11:57:42 +0200
commitffade03e9d3f77e41f44882c39eb6b12b3b05e63 (patch)
tree7cab80e5760996ca74e883d4794992d75a74e8b3 /application.rb
parent97d98fd5481359b96215f8a50d032c8fe96e9add (diff)
storage paths from id
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/application.rb b/application.rb
index 39e47c7..5b47935 100644
--- a/application.rb
+++ b/application.rb
@@ -19,11 +19,12 @@ 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') }
+INBOX_DIR = File.join(SOCIAL_DIR, 'inbox')
+OUTBOX_DIR = File.join(SOCIAL_DIR, 'outbox')
+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'
-VISITED = File.join(INBOX[:dir], 'visited')
+VISITED = File.join(INBOX_DIR, 'visited')
ACTIVITIES = %i[create announce follow accept undo delete like update move]
CONTENT_TYPE = 'application/activity+json'