mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Poco: Option to activate and deactivate detection of last activity.
This commit is contained in:
parent
639f94f8b9
commit
f1e7369283
4 changed files with 20 additions and 13 deletions
|
@ -7,9 +7,6 @@ require_once("include/Scrape.php");
|
|||
To-Do:
|
||||
- noscrape for updating contact fields and "last updated"
|
||||
- use /poco/@global for discovering contacts from other servers
|
||||
- Make search for last activity optional
|
||||
- only export contacts via poco where update is higher than failure
|
||||
- check your own contacts in some way as well
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -245,8 +242,8 @@ function poco_check($profile_url, $name, $network, $profile_photo, $about, $loca
|
|||
|
||||
logger("profile-check generation: ".$generation." Network: ".$network." URL: ".$profile_url." name: ".$name." avatar: ".$profile_photo, LOGGER_DEBUG);
|
||||
|
||||
// Only fetch last update manually if it wasn't provided
|
||||
if (($orig_updated == "0000-00-00 00:00:00") AND poco_do_update($updated, $last_contact, $last_failure)) {
|
||||
// Only fetch last update manually if it wasn't provided and enabled in the system
|
||||
if (get_config('system','ld_discover_activity') AND ($orig_updated == "0000-00-00 00:00:00") AND poco_do_update($updated, $last_contact, $last_failure)) {
|
||||
$last_updated = poco_last_updated($profile_url);
|
||||
if ($last_updated) {
|
||||
$updated = $last_updated;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue