kopia lustrzana https://gitlab.com/jaywink/federation
update changelog and doc string. django now throws a ModuleNotFound error when it's config can't be found. Catch it.
rodzic
b3c97fc701
commit
5b560efded
|
@ -55,6 +55,8 @@
|
||||||
|
|
||||||
* Signatures are not verified and the corresponding payload is dropped if no public key is found.
|
* Signatures are not verified and the corresponding payload is dropped if no public key is found.
|
||||||
|
|
||||||
|
* Sign forwarded AP replies and shares with the target content author's private key.
|
||||||
|
|
||||||
### Internal changes
|
### Internal changes
|
||||||
|
|
||||||
* Dropped python 3.6 support.
|
* Dropped python 3.6 support.
|
||||||
|
|
|
@ -132,7 +132,10 @@ def handle_send(
|
||||||
]
|
]
|
||||||
:arg parent_user: (Optional) User object of the parent object, if there is one. This must be given for the
|
:arg parent_user: (Optional) User object of the parent object, if there is one. This must be given for the
|
||||||
Diaspora protocol if a parent object exists, so that a proper ``parent_author_signature`` can
|
Diaspora protocol if a parent object exists, so that a proper ``parent_author_signature`` can
|
||||||
be generated. If given, the payload will be sent as this user.
|
be generated. If given, the payload will be sent as this user. For Activitypub, the
|
||||||
|
parent_user's private key will be used to generate the http signature if the author_user
|
||||||
|
is not a local user.
|
||||||
|
|
||||||
:arg payload_logger: (Optional) Function to log the payloads with.
|
:arg payload_logger: (Optional) Function to log the payloads with.
|
||||||
"""
|
"""
|
||||||
payloads = []
|
payloads = []
|
||||||
|
|
|
@ -23,7 +23,7 @@ def get_configuration():
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
configuration.update(settings.FEDERATION)
|
configuration.update(settings.FEDERATION)
|
||||||
except ImproperlyConfigured:
|
except (ModuleNotFoundError, ImproperlyConfigured):
|
||||||
# Django is not properly configured, return defaults
|
# Django is not properly configured, return defaults
|
||||||
return configuration
|
return configuration
|
||||||
if not all([
|
if not all([
|
||||||
|
|
Ładowanie…
Reference in New Issue