Don't forget to lycansubscribe

make some other things customizable

+3 -1
app/import_worker.rb
··· 35 end 36 37 def get_registration_time(user) 38 - profile = Minisky.new('public.api.bsky.app', nil).get_request('app.bsky.actor.getProfile', { actor: user.did }) 39 Time.parse(profile['createdAt']) 40 end 41 end
··· 35 end 36 37 def get_registration_time(user) 38 + sky = Minisky.new(ENV['APPVIEW_HOST'] || 'public.api.bsky.app', nil) 39 + profile = sky.get_request('app.bsky.actor.getProfile', { actor: user.did }) 40 + 41 Time.parse(profile['createdAt']) 42 end 43 end
+1 -1
app/post_downloader.rb
··· 9 attr_accessor :report, :stop_when_empty 10 11 def initialize 12 - @sky = Minisky.new(ENV['APPVIEW'] || 'public.api.bsky.app', nil) 13 14 @total_count = 0 15 @oldest_imported = Time.now
··· 9 attr_accessor :report, :stop_when_empty 10 11 def initialize 12 + @sky = Minisky.new(ENV['APPVIEW_HOST'] || 'public.api.bsky.app', nil) 13 14 @total_count = 0 15 @oldest_imported = Time.now
+1 -1
app/server.rb
··· 11 set :port, 3000 12 13 PAGE_LIMIT = 25 14 - HOSTNAME = 'lycan.feeds.blue' 15 16 helpers do 17 def json_response(data)
··· 11 set :port, 3000 12 13 PAGE_LIMIT = 25 14 + HOSTNAME = ENV['SERVER_HOSTNAME'] || 'lycan.feeds.blue' 15 16 helpers do 17 def json_response(data)