Skip to content

Commit

Permalink
Hack the public path thing a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
edgrosvenor committed Jun 4, 2024
1 parent ccf69e1 commit aad965a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/fix-php-code-style-issues.yml

This file was deleted.

4 changes: 2 additions & 2 deletions src/EmbeddedMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(public array $config)
public function make(string $path)
{
$this->path = implode('/', [
$this->config['media_path'],
config('docsidian.media_path'),
$path,
]);

Expand All @@ -34,7 +34,7 @@ public function make(string $path)
]);

$this->uri = implode('/', [
str_replace(public_path(), '', rtrim($this->config['media_path'], '/')),
str_replace(public_path(), '', rtrim(config('docsidian.media_path'), '/')),
$path,
]);

Expand Down

0 comments on commit aad965a

Please sign in to comment.