Merge pull request #10901 from nupplaphil/bug/notify_post

Fix DB errors
pull/10902/head
Michael Vogel 2021-10-19 22:43:11 +02:00 zatwierdzone przez GitHub
commit e2d2f42802
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -158,7 +158,7 @@ function salmon_post(App $a, $xml = '') {
*
*/
$contact = DBA::selectFirst('contact', ["`network` IN (?, ?) AND (`nurl` = ? OR `alias` = ? OR `alias` = ?) AND `uid` = ?",
$contact = DBA::selectFirst('contact', [], ["`network` IN (?, ?) AND (`nurl` = ? OR `alias` = ? OR `alias` = ?) AND `uid` = ?",
Protocol::OSTATUS, Protocol::DFRN, Strings::normaliseLink($author_link), $author_link, Strings::normaliseLink($author_link), $importer['uid']]);
if (!empty($contact['gsid'])) {

Wyświetl plik

@ -76,7 +76,8 @@ class RemoveContent
Photo::delete(['contact-id' => $id]);
DBA::delete('contact-relation', ['contact-id = ? OR cid = ?', $id, $id]);
DBA::delete('contact-relation', ['contact-id' => $id]);
DBA::delete('contact-relation', ['cid' => $id]);
DBA::delete('event', ['cid' => $id]);
DBA::delete('fsuggest', ['cid' => $id]);
DBA::delete('post-tag', ['cid' => $id]);