about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-23 18:34:48 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:15 -0500
commit980339b73e294e39b8fd650b5a4c25f39b31d00e (patch)
treee1040f17abf27e4adb05c7bb678f91aefeb09dbc /app/models
parent47584d20c5c91189f0791b4b63ace361a25b614f (diff)
[Federation] Add backend support for ActivityPub object titles
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 46361280d..69d3a0ff8 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -28,6 +28,7 @@
 #  edited                 :integer          default(0), not null
 #  nest_level             :integer          default(0), not null
 #  published              :boolean          default(TRUE), not null
+#  title                  :text
 #
 
 # rubocop:disable Metrics/ClassLength
@@ -527,6 +528,7 @@ class Status < ApplicationRecord
   def prepare_contents
     text&.strip!
     spoiler_text&.strip!
+    title&.strip!
   end
 
   def set_reblog