mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 01:59:19 +02:00
We now use a proper user agent including instance version and url during outgoing requests
This commit is contained in:
parent
99200ad077
commit
b5ff339efa
10 changed files with 47 additions and 19 deletions
|
@ -1,9 +1,10 @@
|
|||
import logging
|
||||
import json
|
||||
import requests
|
||||
import requests_http_signature
|
||||
import uuid
|
||||
|
||||
from funkwhale_api.common import session
|
||||
|
||||
from . import models
|
||||
from . import signing
|
||||
|
||||
|
@ -68,7 +69,7 @@ def deliver(activity, on_behalf_of, to=[]):
|
|||
recipient_actor = actors.get_actor(url)
|
||||
logger.debug('delivering to %s', recipient_actor.inbox_url)
|
||||
logger.debug('activity content: %s', json.dumps(activity))
|
||||
response = requests.post(
|
||||
response = session.get_session().post(
|
||||
auth=auth,
|
||||
json=activity,
|
||||
url=recipient_actor.inbox_url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue