mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Use config value to trigger automated rating
This commit is contained in:
parent
c4aebffd3b
commit
df75a24dc7
3 changed files with 14 additions and 4 deletions
|
@ -602,7 +602,7 @@ class Feed
|
|||
}
|
||||
}
|
||||
|
||||
if (!$dryRun) {
|
||||
if (!$dryRun && DI::config()->get('system', 'adjust_poll_frequency')) {
|
||||
self::adjustPollFrequency($contact, $creation_dates);
|
||||
}
|
||||
|
||||
|
@ -716,8 +716,9 @@ class Feed
|
|||
$priority = 3; // Poll once a day
|
||||
}
|
||||
|
||||
if ($contact['priority'] != $priority) {
|
||||
Logger::notice('Adjusting priority', ['old' => $contact['priority'], 'new' => $priority, 'id' => $contact['id'], 'uid' => $contact['uid'], 'url' => $contact['url']]);
|
||||
if ($contact['rating'] != $priority) {
|
||||
Logger::notice('Adjusting priority', ['old' => $contact['rating'], 'new' => $priority, 'id' => $contact['id'], 'uid' => $contact['uid'], 'url' => $contact['url']]);
|
||||
DBA::update('contact', ['rating' => $priority], ['id' => $contact['id']]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue