allow fast server to be disabled by removing it from the config file

This commit is contained in:
Adam Cooke
2017-04-26 20:52:04 +01:00
parent ff645a6677
commit 3d45a5d4f1
3 changed files with 7 additions and 2 deletions
+4
View File
@@ -165,4 +165,8 @@ module Postal
config.general&.anonymous_signup != false
end
def self.fast_server?
!!self.config.fast_server
end
end
+1 -1
View File
@@ -545,7 +545,7 @@ module Postal
# Should this message be parsed?
#
def should_parse?
parsed? == false && headers['x-amp'] != 'skip'
parsed? == false && headers['x-amp'] != 'skip' && Postal.fast_server?
end
private