Skip to content

Commit

Permalink
Fixing relative URLs bug + Adding EasyMDE
Browse files Browse the repository at this point in the history
  • Loading branch information
axeloz committed Jan 5, 2024
1 parent d675b8e commit b418163
Show file tree
Hide file tree
Showing 12 changed files with 2,019 additions and 246 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ yarn-error.log
/.vscode
/storage/content
/storage/clockwork
.DS_Store
2 changes: 2 additions & 0 deletions app/Http/Resources/BundleResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str;

use App\Http\Resources\UserResource;
use App\Http\Resources\FileResource;
Expand Down Expand Up @@ -37,6 +38,7 @@ public function toArray(Request $request): array
'fullsize' => (int)$this->fullsize,
'title' => $this->title,
'description' => $this->description,
'description_html' => ! empty($this->description) ? Str::markdown($this->description) : null,
'max_downloads' => (int)$this->max_downloads,
'downloads' => (int)$this->downloads,
'files' => FileResource::collection($this->files),
Expand Down
Loading

0 comments on commit b418163

Please sign in to comment.