Refactor email sending methods to not require HttpRequest unless necessary #1540
Labels
app: projectroles
Issue in the projectroles app
internal
Changes invisible to the user or APIs (e.g. refactoring and optimization)
Milestone
Related to #1539. At least all methods using
get_role_change_body()
require aHttpRequest
object forbuild_absolute_uri()
.An alternative to
build_absolute_uri()
would be to useSODAR_API_DEFAULT_HOST
. This of course requires the admins of SODAR Core based sites to provide correct settings on their site, but we should trust them that much ;)There also might be other replacements for this, I'll look into it.
The text was updated successfully, but these errors were encountered: