minor commit to let me rebase on more-content

jsonld-outbound
Alain St-Denis 2022-08-22 12:40:07 +00:00
rodzic 317fd932f4
commit 08ca0169fe
3 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -134,9 +134,9 @@ def get_outbound_entity(entity: BaseEntity, private_key):
# Already fine
outbound = entity
elif cls == Accept:
outbound = ActivitypubAccept.from_base(entity)
outbound = models.Accept.from_base(entity)
elif cls == Follow:
outbound = ActivitypubFollow.from_base(entity)
outbound = models.Follow.from_base(entity)
elif cls == Post:
outbound = models.Note.from_base(entity)
elif cls == Profile:

Wyświetl plik

@ -38,7 +38,7 @@ def get_loader(*args, **kwargs):
backend = rc.SQLiteCache(db_path='fed_cache')
except ImportError:
backend = rc.SQLiteCache(db_path='fed_cache')
logger.info('Using %s for requests_cache', type(backend))
logger.debug('Using %s for requests_cache', type(backend))
requests_loader = jsonld.requests_document_loader(*args, **kwargs)

Wyświetl plik

@ -357,6 +357,8 @@ def handle_send(
# Do actual sending
for payload in payloads:
for url in payload["urls"]:
print(url, payload["payload"])
continue
try:
# TODO send_document and fetch_document need to handle rate limits
send_document(