kopia lustrzana https://gitlab.com/jaywink/federation
Ignore relayed retractions.
rodzic
7559f16f4f
commit
db87313535
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue