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

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

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

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

79
     'log-content'               => true,
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
      * What filesystem we use for storing content html files
88
      * What filesystem we use for storing content html files
89
      */
89
      */
90
-    'tracker-filesystem'        => null,
90
+    'tracker-filesystem'        => 'local',
91
     'tracker-filesystem-folder' => 'mail-tracker',
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
 @endcomponent
11
 @endcomponent
12
 
12
 
13
 @if(filled(trim(strip_tags($annotazioneHtml))))
13
 @if(filled(trim(strip_tags($annotazioneHtml))))
14
-
15
-{!! $annotazioneHtml !!}
14
+<div>{!! $annotazioneHtml !!}</div>
16
 @endif
15
 @endif
17
 
16
 
18
 @component('mail::button', ['url' => $segnalazione->urlCliente()])
17
 @component('mail::button', ['url' => $segnalazione->urlCliente()])

Notiek ielāde…
Atcelt
Saglabāt