skip mentions if text is nil (can happen during bulk updates) (refs #8)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user