@@ -47,19 +47,15 @@ class TrustLevelRepo
return if from =~ /^$|^[^+]/ # don't count short codes
body = stanza.body.to_s
- if body =~ /^$|http|code/i- LOG.info "Body is no good: #{stanza.class} #{stanza}"- return- end
+ return if body =~ /^$|http|code/i
- redis.sismember("jmp_blocked_activation_source", from).then do |blocked|
+ redis.sismember("jmp_blocked_activation_source", from).then { |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"
)
- end
+ }.catch { |e| LOG.error "incoming_message", e }
end
protected