We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fc4e44 commit 9649541Copy full SHA for 9649541
backend/src/ApiControllers/PostApiController.php
@@ -23,8 +23,8 @@ public function mastodonUrl(array $data)
23
}
24
25
$post = $this->app->db()->queryValue(
26
- 'SELECT url FROM mastodon_threads WHERE post = ? ORDER BY created_at DESC LIMIT 1',
27
- [$postPath]
+ 'SELECT url FROM mastodon_threads WHERE post = ? AND account = ? ORDER BY created_at DESC LIMIT 1',
+ [$postPath, $this->app->conf('mastodon_account', '')]
28
);
29
30
if (!$post) {
0 commit comments