Skip to content

Commit

Permalink
fix: fof upload patch
Browse files Browse the repository at this point in the history
  • Loading branch information
zgq354 committed Dec 28, 2024
1 parent 7cf53ae commit 9234d03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
10 changes: 10 additions & 0 deletions patches/fof-upload-src-templates-markdownimagetemplate-php.patch
Original file line number Diff line number Diff line change
@@ -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.')';
}
}

0 comments on commit 9234d03

Please sign in to comment.