forgejo-federation/routers/web/user
zeripath c9c0475f4d
In Render tolerate not being passed a context (#16842)
* In Render tolerate not being passed a context

It is possible for RenderString to be passed to an external renderer if markdown
is set to be rendered by an external renderer. No context is currently sent to these
meaning that this will error out.

Fix #16835

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add Context to Repo calls for RenderString

All calls from routers can easily add the context - so add it.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-08-28 21:15:56 +01:00
..
setting Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 2021-08-11 02:31:13 +02:00
auth.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
auth_openid.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 2021-08-11 02:31:13 +02:00
avatar.go Rename context.Query to context.Form (#16562) 2021-07-29 03:42:15 +02:00
home.go In Render tolerate not being passed a context (#16842) 2021-08-28 21:15:56 +01:00
home_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
main_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
notification.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
oauth.go Decoupled code from DefaultSigningKey (#16743) 2021-08-27 20:28:00 +01:00
oauth_test.go Decoupled code from DefaultSigningKey (#16743) 2021-08-27 20:28:00 +01:00
profile.go In Render tolerate not being passed a context (#16842) 2021-08-28 21:15:56 +01:00
task.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00