diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-02-08 18:23:53 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-02-08 18:23:53 +0100 |
commit | 692963d43beb5e66a86e15d63b5aa3eeca82f0a1 (patch) | |
tree | bc7319ae242a889bb1d05b7afdd365d78a43ac1d /app/services/activitypub | |
parent | b1983623aec8e0b066d115736d2151e0c74407fa (diff) | |
parent | b6d7726ecbc833abd00f6a9d36b24d9776cfe623 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/services/activitypub')
-rw-r--r-- | app/services/activitypub/process_status_update_service.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/services/activitypub/process_status_update_service.rb b/app/services/activitypub/process_status_update_service.rb index 977928127..b1cea1cdf 100644 --- a/app/services/activitypub/process_status_update_service.rb +++ b/app/services/activitypub/process_status_update_service.rb @@ -120,7 +120,7 @@ class ActivityPub::ProcessStatusUpdateService < BaseService @status.text = @status_parser.text || '' @status.spoiler_text = @status_parser.spoiler_text || '' @status.sensitive = @account.sensitized? || @status_parser.sensitive || false - @status.language = @status_parser.language || detected_language + @status.language = @status_parser.language @status.edited_at = @status_parser.edited_at || Time.now.utc if significant_changes? @status.save! @@ -210,10 +210,6 @@ class ActivityPub::ProcessStatusUpdateService < BaseService { redis: Redis.current, key: "create:#{@uri}", autorelease: 15.minutes.seconds } end - def detected_language - LanguageDetector.instance.detect(@status_parser.text, @account) - end - def create_previous_edit! # We only need to create a previous edit when no previous edits exist, e.g. # when the status has never been edited. For other cases, we always create |