diff --git a/composer.json b/composer.json index 63151f7..60dcd4c 100644 --- a/composer.json +++ b/composer.json @@ -100,6 +100,7 @@ "extra": { "patches": { "fof/upload": [ + "patches/fof-upload-src-templates-markdownimagetemplate-php.patch", "patches/fof-upload-src-adapters-manager-php.patch" ], "askvortsov/flarum-pwa": [ diff --git a/patches/fof-upload-src-templates-markdownimagetemplate-php.patch b/patches/fof-upload-src-templates-markdownimagetemplate-php.patch new file mode 100644 index 0000000..dd82b72 --- /dev/null +++ b/patches/fof-upload-src-templates-markdownimagetemplate-php.patch @@ -0,0 +1,10 @@ +--- /dev/null ++++ ../src/Templates/MarkdownImageTemplate.php +@@ -42,6 +42,6 @@ + */ + public function preview(File $file): string + { +- return '![Image description]('.$file->url.')'; ++ return '![]('.$file->url.')'; + } + }