mirror of
https://github.com/friendica/friendica
synced 2025-04-22 07:50:11 +00:00
Replace the legacy DFRN connection process with AP
This commit is contained in:
parent
33689a8d4e
commit
28f316b7e4
6 changed files with 96 additions and 32 deletions
|
@ -456,6 +456,7 @@ class Processor
|
|||
self::switchContact($cid);
|
||||
DBA::update('contact', ['hub-verify' => $activity['id']], ['id' => $cid]);
|
||||
$contact = DBA::selectFirst('contact', [], ['id' => $cid, 'network' => Protocol::NATIVE_SUPPORT]);
|
||||
Logger::info('hub-verify', ['hub-verify' => $contact['hub-verify'], 'url' => $contact['url']]);
|
||||
} else {
|
||||
$contact = false;
|
||||
}
|
||||
|
@ -474,6 +475,7 @@ class Processor
|
|||
|
||||
if (empty($contact)) {
|
||||
DBA::update('contact', ['hub-verify' => $activity['id']], ['id' => $cid]);
|
||||
Logger::info('hub-verify', ['hub-verify' => $activity['id'], 'cid' => $cid]);
|
||||
}
|
||||
|
||||
Logger::log('Follow user ' . $uid . ' from contact ' . $cid . ' with id ' . $activity['id']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue