mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:10:12 +00:00
New fields in contact table / don't update on probe
This commit is contained in:
parent
7b0a9ffd89
commit
ef5be9668f
9 changed files with 39 additions and 129 deletions
|
@ -612,6 +612,7 @@ class Processor
|
|||
|
||||
Logger::log('Updating profile for ' . $activity['object_id'], Logger::DEBUG);
|
||||
APContact::getByURL($activity['object_id'], true);
|
||||
// Contact::updateFromProbe($activity['object_id'], $network = '', $force = false)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1742,6 +1742,11 @@ class DFRN
|
|||
(strtotime($contact['avatar-date']) > strtotime($contact_old['avatar-date']) || ($author['avatar'] != $contact_old['avatar']))
|
||||
);
|
||||
|
||||
// Update the "hidden" status in the public contact
|
||||
// @todo Updating the contact with all fields and update the gcontact from that
|
||||
$condition = ['uid' => 0, 'nurl' => Strings::normaliseLink($contact_old['url'])];
|
||||
DBA::update('contact', ['unsearchable' => $hide], $condition, true);
|
||||
|
||||
/*
|
||||
* The generation is a sign for the reliability of the provided data.
|
||||
* It is used in the socgraph.php to prevent that old contact data
|
||||
|
|
|
@ -2258,8 +2258,8 @@ class Diaspora
|
|||
$fields = ['name' => $name, 'location' => $location,
|
||||
'name-date' => DateTimeFormat::utcNow(),
|
||||
'about' => $about, 'gender' => $gender,
|
||||
'addr' => $author, 'nick' => $nick,
|
||||
'keywords' => $keywords];
|
||||
'addr' => $author, 'nick' => $nick, 'keywords' => $keywords,
|
||||
'unsearchable' => !$searchable, 'sensitive' => $nsfw];
|
||||
|
||||
if (!empty($birthday)) {
|
||||
$fields['bd'] = $birthday;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue