]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5851 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 9 May 2023 07:14:46 +0000 (09:14 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 9 May 2023 07:14:46 +0000 (09:14 +0200)
app/Jobs/DownloadBase.php
app/Mail/FluidbookQuoteReceived.php
composer.lock

index d6f4dd695d199bddbe3b5ff285f544901d01fd33..28492f564f72f151dd49e98b7c7d32fb384adc2a 100644 (file)
@@ -18,6 +18,7 @@ use Illuminate\Support\Facades\Log;
 use Illuminate\Support\Facades\Mail;
 use JoliCode\Slack\ClientFactory;
 use League\CommonMark\CommonMarkConverter;
+use League\CommonMark\Exception\CommonMarkException;
 
 class DownloadBase extends Base
 {
@@ -62,6 +63,9 @@ class DownloadBase extends Base
         return Slack::send($this->getUser()->slack, $subject, $text, $actions);
     }
 
+    /**
+     * @throws CommonMarkException
+     */
     public function sendEmail($subject, $text, $actions = [])
     {
         $body = '';
@@ -77,7 +81,7 @@ class DownloadBase extends Base
         $mail = new DeferredDownload();
         $mail->to($this->user->email);
         $mail->subject($subject);
-        $mail->html($converter->convertToHtml($body));
+        $mail->html($converter->convert($body)->getContent());
         Mail::send($mail);
     }
 
index 99bd3f6e31ed07ea95da8c010b02ce606ceb478b..dc4d136f8946f18c48b9f523b0e209fbc2040ebb 100644 (file)
@@ -4,10 +4,14 @@ namespace App\Mail;
 
 use Cubist\Locale\Country;
 use League\CommonMark\CommonMarkConverter;
+use League\CommonMark\Exception\CommonMarkException;
 
 class FluidbookQuoteReceived extends Base
 {
 
+    /**
+     * @throws CommonMarkException
+     */
     public function setData($post)
     {
 
@@ -31,7 +35,7 @@ class FluidbookQuoteReceived extends Base
         }
         $markdown = self::getMarkdown($post, $footer);
         $converter = new CommonMarkConverter();
-        $this->html($converter->convertToHtml($markdown));
+        $this->html($converter->convert($markdown)->getContent());
     }
 
     public function build()
index b4d34f9134c56f291ec0309b07428a7240480aec..db287803d1fd79ccb4bf0907c69c56f36f33461f 100644 (file)
         },
         {
             "name": "spatie/image",
-            "version": "2.2.5",
+            "version": "2.2.6",
             "source": {
                 "type": "git",
                 "url": "https://github.com/spatie/image.git",
-                "reference": "c78e2dbdbced9c1673800e5b813cc8a8127bc5ac"
+                "reference": "f72ca52acd77ca03b7843a0f86e2411ce90aecfc"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/spatie/image/zipball/c78e2dbdbced9c1673800e5b813cc8a8127bc5ac",
-                "reference": "c78e2dbdbced9c1673800e5b813cc8a8127bc5ac",
+                "url": "https://api.github.com/repos/spatie/image/zipball/f72ca52acd77ca03b7843a0f86e2411ce90aecfc",
+                "reference": "f72ca52acd77ca03b7843a0f86e2411ce90aecfc",
                 "shasum": ""
             },
             "require": {
                 "spatie"
             ],
             "support": {
-                "source": "https://github.com/spatie/image/tree/2.2.5"
+                "source": "https://github.com/spatie/image/tree/2.2.6"
             },
             "funding": [
                 {
                     "type": "github"
                 }
             ],
-            "time": "2023-01-19T17:06:04+00:00"
+            "time": "2023-05-06T10:20:33+00:00"
         },
         {
             "name": "spatie/image-optimizer",
         },
         {
             "name": "spatie/laravel-translatable",
-            "version": "6.5.0",
+            "version": "6.5.1",
             "source": {
                 "type": "git",
                 "url": "https://github.com/spatie/laravel-translatable.git",
-                "reference": "732e46b8c664a6da6d5d14751185c1844e2b5bc1"
+                "reference": "b8f102492f816608d832cfe9e420da6a856312cf"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/spatie/laravel-translatable/zipball/732e46b8c664a6da6d5d14751185c1844e2b5bc1",
-                "reference": "732e46b8c664a6da6d5d14751185c1844e2b5bc1",
+                "url": "https://api.github.com/repos/spatie/laravel-translatable/zipball/b8f102492f816608d832cfe9e420da6a856312cf",
+                "reference": "b8f102492f816608d832cfe9e420da6a856312cf",
                 "shasum": ""
             },
             "require": {
             ],
             "support": {
                 "issues": "https://github.com/spatie/laravel-translatable/issues",
-                "source": "https://github.com/spatie/laravel-translatable/tree/6.5.0"
+                "source": "https://github.com/spatie/laravel-translatable/tree/6.5.1"
             },
             "funding": [
                 {
                     "type": "github"
                 }
             ],
-            "time": "2023-04-20T08:54:14+00:00"
+            "time": "2023-05-06T10:22:13+00:00"
         },
         {
             "name": "spatie/pdf-to-image",
         },
         {
             "name": "swayok/alternative-laravel-cache",
-            "version": "6.1.10",
+            "version": "6.1.11",
             "source": {
                 "type": "git",
                 "url": "https://github.com/swayok/alternative-laravel-cache.git",
-                "reference": "31df4d2e3fa9b44b5b3a063f34b0e7bd4abb4236"
+                "reference": "ad4b02e2cce48c4eea9d9bd5fb298904c2fd60e8"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/swayok/alternative-laravel-cache/zipball/31df4d2e3fa9b44b5b3a063f34b0e7bd4abb4236",
-                "reference": "31df4d2e3fa9b44b5b3a063f34b0e7bd4abb4236",
+                "url": "https://api.github.com/repos/swayok/alternative-laravel-cache/zipball/ad4b02e2cce48c4eea9d9bd5fb298904c2fd60e8",
+                "reference": "ad4b02e2cce48c4eea9d9bd5fb298904c2fd60e8",
                 "shasum": ""
             },
             "require": {
             ],
             "support": {
                 "issues": "https://github.com/swayok/alternative-laravel-cache/issues",
-                "source": "https://github.com/swayok/alternative-laravel-cache/tree/6.1.10"
+                "source": "https://github.com/swayok/alternative-laravel-cache/tree/6.1.11"
             },
-            "time": "2023-03-16T10:54:40+00:00"
+            "time": "2023-05-08T13:23:39+00:00"
         },
         {
             "name": "symfony/cache",
         },
         {
             "name": "sebastian/diff",
-            "version": "4.0.4",
+            "version": "4.0.5",
             "source": {
                 "type": "git",
                 "url": "https://github.com/sebastianbergmann/diff.git",
-                "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d"
+                "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d",
-                "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d",
+                "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
+                "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
                 "shasum": ""
             },
             "require": {
             ],
             "support": {
                 "issues": "https://github.com/sebastianbergmann/diff/issues",
-                "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
+                "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5"
             },
             "funding": [
                 {
                     "type": "github"
                 }
             ],
-            "time": "2020-10-26T13:10:38+00:00"
+            "time": "2023-05-07T05:35:17+00:00"
         },
         {
             "name": "sebastian/environment",
         "ext-zlib": "*"
     },
     "platform-dev": [],
-    "plugin-api-version": "2.1.0"
+    "plugin-api-version": "2.3.0"
 }