mirror of
https://github.com/whippyshou/mastodon
synced 2025-01-22 09:43:45 +09:00
dm
This commit is contained in:
parent
6a86b8e873
commit
ba40a3cac5
BIN
app/javascript/images/theme/bg_dark.png
Normal file
BIN
app/javascript/images/theme/bg_dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 MiB |
BIN
app/javascript/images/theme/bg_light.png
Normal file
BIN
app/javascript/images/theme/bg_light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 MiB |
@ -3,6 +3,7 @@
|
||||
class Admin::StatusFilter
|
||||
KEYS = %i(
|
||||
media
|
||||
direct
|
||||
report_id
|
||||
).freeze
|
||||
|
||||
@ -33,6 +34,8 @@ class Admin::StatusFilter
|
||||
case key.to_s
|
||||
when 'media'
|
||||
Status.joins(:media_attachments).merge(@account.media_attachments.reorder(nil)).group(:id).reorder('statuses.id desc')
|
||||
when 'direct'
|
||||
Status.where(visibility: :direct).group(:id).reorder('statuses.id desc')
|
||||
else
|
||||
raise Mastodon::InvalidParameterError, "Unknown filter: #{key}"
|
||||
end
|
||||
|
@ -7,8 +7,9 @@
|
||||
.filter-subset
|
||||
%strong= t('admin.statuses.media.title')
|
||||
%ul
|
||||
%li= filter_link_to t('generic.all'), media: nil, id: nil
|
||||
%li= filter_link_to t('admin.statuses.with_media'), media: '1'
|
||||
%li= filter_link_to t('generic.all'), media: nil, id: nil, direct: nil
|
||||
%li= filter_link_to t('admin.statuses.with_media'), media: '1', direct: nil
|
||||
%li= filter_link_to t('admin.statuses.with_direct'), media: nil, direct: '1'
|
||||
.back-link
|
||||
- if params[:report_id]
|
||||
= link_to admin_report_path(params[:report_id].to_i) do
|
||||
|
@ -805,6 +805,7 @@ ko:
|
||||
trending: 유행 중
|
||||
visibility: 공개 설정
|
||||
with_media: 미디어 있음
|
||||
with_direct: DM 보기
|
||||
strikes:
|
||||
actions:
|
||||
delete_statuses: "%{name} 님이 %{target} 님의 게시물을 삭제했습니다"
|
||||
|
Loading…
Reference in New Issue
Block a user