diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-04 01:33:34 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-04 01:33:34 +0200 |
commit | 4c53af64f0b10bc11473df5e3fd1cd7a11b755f6 (patch) | |
tree | 9bad122ae3a66b4171f48947cbb33496e2f8b2de /app/models | |
parent | f722bd2387df9163760014e9555928ec487ae95f (diff) |
Fix ActionController::Parameters in API issue
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 81b26fd14..daf128572 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -188,7 +188,7 @@ class Status < ApplicationRecord end before_validation do - text.strip! + text&.strip! spoiler_text&.strip! self.reply = !(in_reply_to_id.nil? && thread.nil?) unless reply |