Only search for empty quoted reshares (Diaspora type)

This commit is contained in:
Michael 2022-12-13 23:26:58 +00:00
parent ca8a89ed1c
commit f013c92487
4 changed files with 6 additions and 4 deletions

View file

@ -50,7 +50,7 @@ class Unreblog extends BaseApi
}
if ($item['network'] == Protocol::DIASPORA) {
$item = Post::selectFirstForUser($uid, ['id'], ['quote-uri-id' => $this->parameters['id'], 'origin' => true, 'uid' => $uid]);
$item = Post::selectFirstForUser($uid, ['id'], ['quote-uri-id' => $this->parameters['id'], 'body' => '', 'origin' => true, 'uid' => $uid]);
if (empty($item['id'])) {
DI::mstdnError()->RecordNotFound();
}