summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/migrations/migrations.go3
-rw-r--r--modules/markup/html.go3
2 files changed, 4 insertions, 2 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index 5ed358822b..3c8edb8eaf 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -373,6 +373,9 @@ var migrations = []Migration{
NewMigration("Increase WebAuthentication CredentialID size to 410 - NO-OPED", increaseCredentialIDTo410),
// v210 -> v211
NewMigration("v208 was completely broken - remigrate", remigrateU2FCredentials),
+
+ // Gitea 1.16.2 ends at v211
+
// v211 -> v212
NewMigration("Create ForeignReference table", createForeignReferenceTable),
}
diff --git a/modules/markup/html.go b/modules/markup/html.go
index 758746ef87..87d05dcabb 100644
--- a/modules/markup/html.go
+++ b/modules/markup/html.go
@@ -348,8 +348,7 @@ func postProcess(ctx *RenderContext, procs []processor, input io.Reader, output
// Render everything to buf.
for _, node := range newNodes {
- err = html.Render(output, node)
- if err != nil {
+ if err := html.Render(output, node); err != nil {
return &postProcessError{"error rendering processed HTML", err}
}
}