From ffade03e9d3f77e41f44882c39eb6b12b3b05e63 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Fri, 3 May 2024 11:57:42 +0200 Subject: storage paths from id --- application.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'application.rb') 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' -- cgit v1.2.3