Merge pull request #10901 from nupplaphil/bug/notify_post
Fix DB errors
This commit is contained in:
commit
e2d2f42802
2 changed files with 3 additions and 2 deletions
|
@ -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']]);
|
Protocol::OSTATUS, Protocol::DFRN, Strings::normaliseLink($author_link), $author_link, Strings::normaliseLink($author_link), $importer['uid']]);
|
||||||
|
|
||||||
if (!empty($contact['gsid'])) {
|
if (!empty($contact['gsid'])) {
|
||||||
|
|
|
@ -76,7 +76,8 @@ class RemoveContent
|
||||||
|
|
||||||
Photo::delete(['contact-id' => $id]);
|
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('event', ['cid' => $id]);
|
||||||
DBA::delete('fsuggest', ['cid' => $id]);
|
DBA::delete('fsuggest', ['cid' => $id]);
|
||||||
DBA::delete('post-tag', ['cid' => $id]);
|
DBA::delete('post-tag', ['cid' => $id]);
|
||||||
|
|
Loading…
Reference in a new issue