Filling the protocol on ap contact action
This commit is contained in:
parent
c66927a12b
commit
74a25707e1
1 changed files with 2 additions and 2 deletions
|
@ -454,7 +454,7 @@ class Processor
|
||||||
$cid = Contact::getIdForURL($activity['actor'], $uid);
|
$cid = Contact::getIdForURL($activity['actor'], $uid);
|
||||||
if (!empty($cid)) {
|
if (!empty($cid)) {
|
||||||
self::switchContact($cid);
|
self::switchContact($cid);
|
||||||
DBA::update('contact', ['hub-verify' => $activity['id']], ['id' => $cid]);
|
DBA::update('contact', ['hub-verify' => $activity['id'], 'protocol' => Protocol::ACTIVITYPUB], ['id' => $cid]);
|
||||||
$contact = DBA::selectFirst('contact', [], ['id' => $cid, 'network' => Protocol::NATIVE_SUPPORT]);
|
$contact = DBA::selectFirst('contact', [], ['id' => $cid, 'network' => Protocol::NATIVE_SUPPORT]);
|
||||||
} else {
|
} else {
|
||||||
$contact = false;
|
$contact = false;
|
||||||
|
@ -475,7 +475,7 @@ class Processor
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($contact)) {
|
if (empty($contact)) {
|
||||||
DBA::update('contact', ['hub-verify' => $activity['id']], ['id' => $cid]);
|
DBA::update('contact', ['hub-verify' => $activity['id'], 'protocol' => Protocol::ACTIVITYPUB], ['id' => $cid]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger::log('Follow user ' . $uid . ' from contact ' . $cid . ' with id ' . $activity['id']);
|
Logger::log('Follow user ' . $uid . ' from contact ' . $cid . ' with id ' . $activity['id']);
|
||||||
|
|
Loading…
Reference in a new issue