Browse Source

Fix incorrectly formatted datetime in account moderation note timestamp (#22555)

* Fix incorrectly formatted datetime in account moderation note timestamp

Fix oversight from #21878

* Fix use of non-existent translation string
closed-social-glitch-2
Claire 1 year ago
committed by GitHub
parent
commit
b8ad446f77
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      app/views/admin/report_notes/_report_note.html.haml
  2. +1
    -1
      app/views/admin/reports/show.html.haml
  3. +1
    -1
      app/views/disputes/strikes/show.html.haml

+ 2
- 2
app/views/admin/report_notes/_report_note.html.haml View File

@ -4,8 +4,8 @@
.report-notes__item__header
%span.username
= link_to report_note.account.username, admin_account_path(report_note.account_id)
%time.relative-formatted{ datetime: report_note.created_at }
= t('admin.report_notes.created_at')
%time.relative-formatted{ datetime: report_note.created_at.iso8601 }
= l report_note.created_at.to_date
.report-notes__item__content
= simple_format(h(report_note.content))

+ 1
- 1
app/views/admin/reports/show.html.haml View File

@ -145,7 +145,7 @@
- else
= link_to @report.account.domain, admin_instance_path(@report.account.domain)
%time.relative-formatted{ datetime: @report.created_at.iso8601 }
= t('admin.report_notes.created_at')
= l @report.created_at.to_date
.report-notes__item__content
= simple_format(h(@report.comment))

+ 1
- 1
app/views/disputes/strikes/show.html.haml View File

@ -111,7 +111,7 @@
%span.username
= link_to @appeal.account.username, can?(:show, @appeal.account) ? admin_account_path(@appeal.account_id) : short_account_url(@appeal.account)
%time.relative-formatted{ datetime: @appeal.created_at.iso8601 }
= t('admin.report_notes.created_at')
= l @appeal.created_at.to_date
.report-notes__item__content
= simple_format(h(@appeal.text))

Loading…
Cancel
Save