about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
Diffstat (limited to 'app/services')
-rw-r--r--app/services/post_status_service.rb1
-rw-r--r--app/services/update_status_service.rb2
2 files changed, 3 insertions, 0 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index 33440a5a4..82588d254 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -196,6 +196,7 @@ class PostStatusService < BaseService
   def status_attributes
     {
       text: @text,
+      original_text: @text,
       media_attachments: @media || [],
       thread: @in_reply_to,
       poll_attributes: poll_attributes,
diff --git a/app/services/update_status_service.rb b/app/services/update_status_service.rb
index 18fee3e17..887384991 100644
--- a/app/services/update_status_service.rb
+++ b/app/services/update_status_service.rb
@@ -8,6 +8,7 @@ class UpdateStatusService < BaseService
     spoiler_text
     title
     text
+    original_text
     content_type
     language
     sensitive
@@ -33,6 +34,7 @@ class UpdateStatusService < BaseService
     @tags                   = (tags.nil? ? @status.tags : (tags || [])).to_set
 
     @params[:text]        ||= ''
+    @params[:original_text] = @params[:text]
     @params[:published]     = true if @status.published?
     (@params[:edited]     ||= 1 + @status.edited) if @params[:published].presence || @status.published?