fix(ApiHandler.php): handle PATCH requests in fetchFromPostgREST
This commit is contained in:
parent
d5c31a87d3
commit
c40dcbac2b
4 changed files with 7 additions and 5 deletions
|
@ -215,7 +215,7 @@ class MastodonPostHandler extends ApiHandler
|
|||
): void {
|
||||
$data = ["mastodon_url" => $mastodonPostUrl];
|
||||
|
||||
$this->fetchFromPostgREST("posts", "slug=eq.{$slug}&mastodon_url=is.null", "PATCH", $data);
|
||||
$this->fetchFromPostgREST("posts", "slug=eq.{urlencode($slug)}&mastodon_url=is.null", "PATCH", $data);
|
||||
}
|
||||
|
||||
private function truncateContent(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue