mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:10:10 +00:00
Don't transmit to archived inboxes
This commit is contained in:
parent
61ff99c410
commit
e4e9a20ac8
7 changed files with 70 additions and 19 deletions
|
@ -104,6 +104,8 @@ class Receiver
|
|||
return;
|
||||
}
|
||||
|
||||
APContact::unMarkForArchival($apcontact);
|
||||
|
||||
$http_signer = HTTPSignature::getSigner($body, $header);
|
||||
if (empty($http_signer)) {
|
||||
Logger::warning('Invalid HTTP signature, message will be discarded.');
|
||||
|
@ -233,6 +235,7 @@ class Receiver
|
|||
|
||||
$profile = APContact::getByURL($object_id);
|
||||
if (!empty($profile['type'])) {
|
||||
APContact::unMarkForArchival($profile);
|
||||
return 'as:' . $profile['type'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue