0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 00:44:15 -05:00
forgejo/routers
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
..
api/v1 Refactor the fork service slightly to take ForkRepoOptions (#16744) 2021-08-28 16:37:14 +08:00
common Rename context.Query to context.Form (#16562) 2021-07-29 03:42:15 +02:00
install Allow setting X-FRAME-OPTIONS (#16643) 2021-08-06 16:47:10 -04:00
private Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
utils just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
web In Render tolerate not being passed a context (#16842) 2021-08-28 21:15:56 +01:00
init.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00