mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Remove contact immediately on 410 response code
This commit is contained in:
parent
946337645d
commit
2b617fc5c2
4 changed files with 44 additions and 0 deletions
|
@ -174,6 +174,12 @@ class OnePoll
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($curlResult->isGone()) {
|
||||
Logger::notice('URL is permanently gone', ['id' => $contact['id'], 'url' => $contact['poll']]);
|
||||
Contact::remove($contact['id']);
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($curlResult->redirectIsPermanent()) {
|
||||
Logger::notice('Poll address permanently changed', [
|
||||
'id' => $contact['id'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue