Roberto Santini 1 nedēļu atpakaļ
vecāks
revīzija
aadb938909

+ 2
- 1
app/Notifications/AnnotazionePubblicaApertaDa.php Parādīt failu

@@ -4,6 +4,7 @@ namespace App\Notifications;
4 4
 
5 5
 use App\Models\Annotazione;
6 6
 use App\Models\Segnalazione;
7
+use App\Support\IsolaHtml;
7 8
 use Illuminate\Bus\Queueable;
8 9
 use Illuminate\Contracts\Queue\ShouldQueue;
9 10
 use Illuminate\Notifications\Messages\MailMessage;
@@ -51,7 +52,7 @@ class AnnotazionePubblicaApertaDa extends Notification implements ShouldQueue
51 52
             ->markdown('mail.annotazione-pubblica-aperta-da', [
52 53
                 'segnalazione' => $this->segnalazione,
53 54
                 'annotazione' => $this->annotazione,
54
-                'annotazioneHtml' => (string) ($this->annotazione->text ?? ''),
55
+                'annotazioneHtml' => IsolaHtml::fragment((string) ($this->annotazione->text ?? '')),
55 56
                 'aziendaLabel' => $aziendaLabel,
56 57
                 'statoLabel' => $statoLabel,
57 58
                 'prioritaLabel' => $prioritaLabel,

+ 4
- 4
config/mail-tracker.php Parādīt failu

@@ -79,15 +79,15 @@ return [
79 79
     'log-content'               => true,
80 80
 
81 81
     /**
82
-     * Determines whether the body should be stored in a file instead of database
83
-     * Can be either 'database' or 'filesystem'
82
+     * Store the full HTML (images, footer, …) on disk so it is never truncated
83
+     * to fit sent_emails.content TEXT/utf8 limits.
84 84
      */
85
-    'log-content-strategy'      => 'database',
85
+    'log-content-strategy'      => 'filesystem',
86 86
 
87 87
     /**
88 88
      * What filesystem we use for storing content html files
89 89
      */
90
-    'tracker-filesystem'        => null,
90
+    'tracker-filesystem'        => 'local',
91 91
     'tracker-filesystem-folder' => 'mail-tracker',
92 92
 
93 93
     /**

+ 1
- 2
resources/views/mail/annotazione-pubblica-aperta-da.blade.php Parādīt failu

@@ -11,8 +11,7 @@
11 11
 @endcomponent
12 12
 
13 13
 @if(filled(trim(strip_tags($annotazioneHtml))))
14
-
15
-{!! $annotazioneHtml !!}
14
+<div>{!! $annotazioneHtml !!}</div>
16 15
 @endif
17 16
 
18 17
 @component('mail::button', ['url' => $segnalazione->urlCliente()])

Notiek ielāde…
Atcelt
Saglabāt