This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[2/2] Allow homeservers to send registration emails | Accepting the verification #5940
[2/2] Allow homeservers to send registration emails | Accepting the verification #5940
Changes from 12 commits
71fba1a
2f312a2
586d574
9244642
c039f0e
202cb4b
25682b1
002bbd2
bad058f
4a27d1f
69ef48c
2253193
2ee17d7
f57e5c9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's confusing to have a
load_jinja2_templates
which just returns the templates, andload_jinja2_template
which also callsrender
. I'd make a case for hoisting therender
call to the caller which will save thetemplate_vars
param, but I guess you could rename the function instead.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've refactored
load_jinja2_templates
into a single function which can do the work of both.The entire refactor is contained within 2ee17d7.