Ignore relayed retractions.

ap-processing-improvements
Alain St-Denis 2023-07-27 08:00:41 -04:00
rodzic 7559f16f4f
commit db87313535
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -47,6 +47,8 @@
* Fix process_text_links that would crash on `a` tags with no `href` attribute.
* Ignore relayed AP retractions.
## [0.24.1] - 2023-03-18
### Fixed

Wyświetl plik

@ -1408,6 +1408,9 @@ def element_to_objects(element: Union[Dict, Object], sender: str = "") -> List:
logger.error("Failed to validate entity %s: %s", entity, ex)
return []
except InvalidSignature as exc:
if isinstance(entity, base.Retraction):
logger.warning('Relayed retraction on %s, ignoring', entity.target_id)
return []
logger.info('%s, fetching from remote', exc)
entity = retrieve_and_parse_document(entity.id)
if not entity: