Merge pull request #6305 from jaywink/social-relay-trim-whitespace-on-tags

Strip leading/trailing whitespace from pod tags list in social relay well known
This commit is contained in:
Jonne Haß 2015-08-09 10:50:54 +02:00
commit 5cc88b8177
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