skip mentions if text is nil (can happen during bulk updates) (refs #8)

This commit is contained in:
Thanos Kyritsis
2016-03-18 11:01:55 +02:00
parent 42ff187547
commit 9d1c844c4c

View File

@@ -256,6 +256,7 @@ private
end
def mentions text
return nil if text.nil?
names = extract_usernames text
names.present? ? "\nTo: " + names.join(', ') : nil
end