Use the right table ...

This commit is contained in:
Michael 2020-09-30 19:05:19 +00:00
parent e26d73393e
commit 648e8a00a4
2 changed files with 2 additions and 2 deletions

View File

@ -2472,7 +2472,7 @@ class DFRN
// Check if the message is wanted
if (($importer["importer_uid"] == 0) && ($item['uri'] == $item['parent-uri'])) {
if (!self::isSolicitedMessage($item)) {
DBA::delete('uri-id', ['uri' => $item['uri']]);
DBA::delete('item-uri', ['uri' => $item['uri']]);
return 403;
}
}

View File

@ -2909,7 +2909,7 @@ class Diaspora
Tag::storeRawTagsFromBody($datarray['uri-id'], $datarray["body"]);
if (!$fetched && !self::isSolicitedMessage($datarray["uri"], $datarray['uri-id'], $author, $body)) {
DBA::delete('uri-id', ['uri' => $datarray['uri']]);
DBA::delete('item-uri', ['uri' => $datarray['uri']]);
return false;
}