kopia lustrzana https://gitlab.com/jaywink/federation
minor commit to let me rebase on more-content
rodzic
317fd932f4
commit
08ca0169fe
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Ładowanie…
Reference in New Issue