Strip leading/trailing whitespace from pod tags list in social relay well known

Closes #6303
This commit is contained in:
Jason Robinson 2015-08-09 00:33:35 +03:00
parent 480384a077
commit cb909c0d70
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ class SocialRelayPresenter
def tags
return [] unless AppConfig.relay.inbound.scope == "tags"
tags = AppConfig.relay.inbound.pod_tags.present? ? AppConfig.relay.inbound.pod_tags.split(",") : []
tags = AppConfig.relay.inbound.pod_tags.present? ? AppConfig.relay.inbound.pod_tags.split(",").map(&:strip) : []
add_user_tags(tags)
tags.uniq
end