fix(ApiHandler.php): handle PATCH requests in fetchFromPostgREST

This commit is contained in:
Cory Dransfeldt 2025-03-28 17:30:17 -07:00
parent d5c31a87d3
commit c40dcbac2b
No known key found for this signature in database
4 changed files with 7 additions and 5 deletions

View file

@ -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(