From bf2cfaf0ede0e9744408f52538fb4bcd87a6d5b8 Mon Sep 17 00:00:00 2001 From: r Date: Sat, 25 Jan 2020 10:07:06 +0000 Subject: Add CSRF protection --- templates/header.tmpl | 3 +++ templates/postform.tmpl | 1 + templates/settings.tmpl | 1 + templates/status.tmpl | 12 ++++++++---- templates/user.tmpl | 9 ++++++--- 5 files changed, 19 insertions(+), 7 deletions(-) (limited to 'templates') diff --git a/templates/header.tmpl b/templates/header.tmpl index 571008a..e6e7f0d 100644 --- a/templates/header.tmpl +++ b/templates/header.tmpl @@ -4,6 +4,9 @@ + {{if .CSRFToken}} + + {{end}} {{if gt .NotificationCount 0}}({{.NotificationCount}}) {{end}}{{.Title}} {{if .CustomCSS}} diff --git a/templates/postform.tmpl b/templates/postform.tmpl index 0b83d2c..ff2dfd9 100644 --- a/templates/postform.tmpl +++ b/templates/postform.tmpl @@ -1,5 +1,6 @@ {{with .Data}}
+ {{if .ReplyContext}} diff --git a/templates/settings.tmpl b/templates/settings.tmpl index a32a1b0..e7d49e9 100644 --- a/templates/settings.tmpl +++ b/templates/settings.tmpl @@ -4,6 +4,7 @@
Settings
+
+ + {{else}}
- + +
{{end}} @@ -126,12 +128,14 @@
{{if .Favourited}}
- + +
{{else}}
- + +
{{end}} diff --git a/templates/user.tmpl b/templates/user.tmpl index bbbce32..abf22ec 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -22,17 +22,20 @@ {{if .User.Pleroma.Relationship.FollowedBy}} follows you - {{end}} {{if .User.Pleroma.Relationship.Following}}
- + +
{{end}} {{if .User.Pleroma.Relationship.Requested}}
- + +
{{end}} {{if not .User.Pleroma.Relationship.Following}}
- + +
{{end}}
-- cgit v1.2.3