about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-04-04 01:33:34 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-04-04 01:33:34 +0200
commit4c53af64f0b10bc11473df5e3fd1cd7a11b755f6 (patch)
tree9bad122ae3a66b4171f48947cbb33496e2f8b2de /app/models/status.rb
parentf722bd2387df9163760014e9555928ec487ae95f (diff)
Fix ActionController::Parameters in API issue
Diffstat (limited to 'app/models/status.rb')
-rw-r--r--app/models/status.rb2
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