mirror of
https://github.com/friendica/friendica
synced 2025-04-29 10:24:23 +02:00
"dba" is now "DBA". This hadn't been respected at some places (#5655)
* "dba" is now "DBA". This hadn't been respected at some places * Cleaning up unneeded stuff
This commit is contained in:
parent
d29cb1acaf
commit
dc3d2d5988
5 changed files with 17 additions and 28 deletions
|
@ -1050,7 +1050,7 @@ class Diaspora
|
|||
return false;
|
||||
}
|
||||
|
||||
$contact = dba::selectFirst('contact', [], ['id' => $cid]);
|
||||
$contact = DBA::selectFirst('contact', [], ['id' => $cid]);
|
||||
if (!DBA::isResult($contact)) {
|
||||
// This here shouldn't happen at all
|
||||
logger("Haven't found a contact for user " . $uid . " and handle " . $handle, LOGGER_DEBUG);
|
||||
|
@ -1079,7 +1079,7 @@ class Diaspora
|
|||
// It is deactivated by now, due to side effects. See issue https://github.com/friendica/friendica/pull/4033
|
||||
// It is not removed by now. Possibly the code is needed?
|
||||
//if (!$is_comment && $contact["rel"] == Contact::FOLLOWER && in_array($importer["page-flags"], array(Contact::PAGE_FREELOVE))) {
|
||||
// dba::update(
|
||||
// DBA::update(
|
||||
// 'contact',
|
||||
// array('rel' => Contact::FRIEND, 'writable' => true),
|
||||
// array('id' => $contact["id"], 'uid' => $contact["uid"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue