diff --git a/lib/trust_level_repo.rb b/lib/trust_level_repo.rb index ecccbe74277ae14265eabce8cd81636c786950b3..73d30117aeccf5b1ea75d2b26c346106c94b0d16 100644 --- a/lib/trust_level_repo.rb +++ b/lib/trust_level_repo.rb @@ -47,11 +47,15 @@ class TrustLevelRepo return if from =~ /^$|^[^+]/ # don't count short codes body = stanza.body.to_s - return if body =~ /^$|http|code/i + if body =~ /^$|http|code/i + LOG.info "Body is no good: #{body}" + return + end redis.sismember("jmp_blocked_activation_source", from).then do |blocked| next if blocked + LOG.info "WRITE inviter: #{customer.customer_id} => #{stanza.from.node}" redis.set( "jmp_customer_activater-#{customer.customer_id}", stanza.from.node, "NX" )