Update admin autospam/report email templates, remove image previews

pull/4285/head
Daniel Supernault 2023-04-09 12:22:03 -06:00
rodzic dca48fd84b
commit 76be49ac58
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
2 zmienionych plików z 0 dodań i 28 usunięć

Wyświetl plik

@ -13,20 +13,6 @@ Review Autospam Report
<x-mail::panel> <x-mail::panel>
<p style="font-size: 13px; color: #cccccc; text-align: center; font-weight: bold;margin-bottom: 10px;">Reported Status</p> <p style="font-size: 13px; color: #cccccc; text-align: center; font-weight: bold;margin-bottom: 10px;">Reported Status</p>
<div style="display: flex; align-items: center;gap: 10px;"> <div style="display: flex; align-items: center;gap: 10px;">
@if(
isset($reported_status['media_attachments']) &&
isset($reported_status['pf_type']) &&
count($reported_status['media_attachments']) &&
in_array($reported_status['pf_type'], ['photo', 'photo:album'])
)
<img
src="{{$reported_status['media_attachments'][0]['url']}}"
width="100"
height="100"
alt="Media preview"
style="object-fit: cover; border: 1px solid #cccccc; border-radius: 10px; margin-bottom: 10px;"
onerror="this.src='{{url('/storage/no-preview.png')}}';this.onerror=null;" />
@endif
@if(isset($reported_status['content'])) @if(isset($reported_status['content']))
<div style="font-size: 12px !important;">{{ strip_tags(str_replace(["\n", "\r", "\r\n"], ' ', $reported_status['content'])) }}</div> <div style="font-size: 12px !important;">{{ strip_tags(str_replace(["\n", "\r", "\r\n"], ' ', $reported_status['content'])) }}</div>
@endif @endif

Wyświetl plik

@ -11,20 +11,6 @@ View Report
<x-mail::panel> <x-mail::panel>
<p style="font-size: 13px; color: #cccccc; text-align: center; font-weight: bold;margin-bottom: 10px;">Reported Status</p> <p style="font-size: 13px; color: #cccccc; text-align: center; font-weight: bold;margin-bottom: 10px;">Reported Status</p>
<div style="display: flex; align-items: center;gap: 10px;"> <div style="display: flex; align-items: center;gap: 10px;">
@if(
isset($reported_status['media_attachments']) &&
isset($reported_status['pf_type']) &&
count($reported_status['media_attachments']) &&
in_array($reported_status['pf_type'], ['photo', 'photo:album'])
)
<img
src="{{$reported_status['media_attachments'][0]['url']}}"
width="100"
height="100"
alt="Media preview"
style="object-fit: cover; border: 1px solid #cccccc; border-radius: 10px; margin-bottom: 10px;"
onerror="this.src='{{url('/storage/no-preview.png')}}';this.onerror=null;" />
@endif
@if(isset($reported_status['content'])) @if(isset($reported_status['content']))
<div style="font-size: 12px !important;">{{ strip_tags(str_replace(["\n", "\r", "\r\n"], ' ', $reported_status['content'])) }}</div> <div style="font-size: 12px !important;">{{ strip_tags(str_replace(["\n", "\r", "\r\n"], ' ', $reported_status['content'])) }}</div>
@endif @endif