mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-17 17:58:14 +00:00
Compare commits
6 Commits
c303a06d9f
...
bbefae26b9
Author | SHA1 | Date | |
---|---|---|---|
![]() |
bbefae26b9 | ||
![]() |
7d2dda97b3 | ||
![]() |
7cf767a978 | ||
![]() |
11a2c73814 | ||
![]() |
967c8f9d25 | ||
![]() |
0bf50cbbbe |
2
.github/ISSUE_TEMPLATE/1.web_bug_report.yml
vendored
2
.github/ISSUE_TEMPLATE/1.web_bug_report.yml
vendored
|
@ -1,6 +1,6 @@
|
|||
name: Bug Report (Web Interface)
|
||||
description: There is a problem using Mastodon's web interface.
|
||||
labels: ['status/to triage', 'area/web interface']
|
||||
labels: ['area/web interface']
|
||||
type: Bug
|
||||
body:
|
||||
- type: markdown
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
name: Bug Report (server / API)
|
||||
description: |
|
||||
There is a problem with the HTTP server, REST API, ActivityPub interaction, etc.
|
||||
labels: ['status/to triage']
|
||||
type: 'Bug'
|
||||
body:
|
||||
- type: markdown
|
||||
|
|
|
@ -20,6 +20,7 @@ class MoveWorker
|
|||
copy_account_notes!
|
||||
carry_blocks_over!
|
||||
carry_mutes_over!
|
||||
carry_follows_over!
|
||||
|
||||
raise @deferred_error unless @deferred_error.nil?
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
|
@ -122,6 +123,14 @@ class MoveWorker
|
|||
end
|
||||
end
|
||||
|
||||
def carry_follows_over!
|
||||
@source_account.followers.local.reorder(nil).find_each do |follower|
|
||||
add_account_note_if_needed!(follower, 'move_handler.carry_follows_over_text')
|
||||
rescue => e
|
||||
@deferred_error = e
|
||||
end
|
||||
end
|
||||
|
||||
def add_account_note_if_needed!(account, id)
|
||||
unless AccountNote.exists?(account: account, target_account: @target_account)
|
||||
text = I18n.with_locale(account.user&.locale.presence || I18n.default_locale) do
|
||||
|
|
|
@ -1632,6 +1632,7 @@ en:
|
|||
title: Moderation
|
||||
move_handler:
|
||||
carry_blocks_over_text: This user moved from %{acct}, which you had blocked.
|
||||
carry_follows_over_text: This user moved from %{acct}, which you had followed.
|
||||
carry_mutes_over_text: This user moved from %{acct}, which you had muted.
|
||||
copy_account_note_text: 'This user moved from %{acct}, here were your previous notes about them:'
|
||||
navigation:
|
||||
|
|
Loading…
Reference in New Issue
Block a user