A simple Ruby server using Sinatra that serves Bluesky custom feeds
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

deprecate validate_responses option

+5 -2
+5 -2
lib/blue_factory/configuration.rb
··· 17 17 18 18 configurable :publisher_did, :hostname, :validate_responses, :enable_unsafe_auth 19 19 20 - set :validate_responses, (environment != :production) 21 - 22 20 def self.set(property, value) 23 21 if property.to_sym == :enable_unsafe_auth 24 22 puts "===" ··· 26 24 puts "Switch to get_posts(args, context) instead and get the user DID from: context.user.raw_did." 27 25 puts "===" 28 26 @enable_unsafe_auth = value 27 + elsif property.to_sym == :validate_responses 28 + puts "===" 29 + puts "WARNING: option :validate_responses is deprecated and will be removed in version 0.3. " + 30 + "Responses are now always validated, also in production." 31 + puts "===" 29 32 else 30 33 super 31 34 end