Skip to content

Commit 9649541

Browse files
committed
only select the current mastodon account in meh-mastodon
1 parent 3fc4e44 commit 9649541

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/ApiControllers/PostApiController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public function mastodonUrl(array $data)
2323
}
2424

2525
$post = $this->app->db()->queryValue(
26-
'SELECT url FROM mastodon_threads WHERE post = ? ORDER BY created_at DESC LIMIT 1',
27-
[$postPath]
26+
'SELECT url FROM mastodon_threads WHERE post = ? AND account = ? ORDER BY created_at DESC LIMIT 1',
27+
[$postPath, $this->app->conf('mastodon_account', '')]
2828
);
2929

3030
if (!$post) {

0 commit comments

Comments
 (0)