From c4a1f5e3d5476d153cd8da0a0150acabd6966b4f Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Tue, 27 Sep 2022 21:49:15 +0300 Subject: [PATCH] Support visibility edited status --- templates/notification.tmpl | 14 ++++++++++++++ templates/status.tmpl | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/templates/notification.tmpl b/templates/notification.tmpl index f62726b..d5d338a 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -101,6 +101,20 @@ {{template "status" (WithContext .Status $.Ctx)}} + {{else if eq .Type "update"}} +
+ + avatar + + + @{{.Account.Acct}} + + edited own post - + + +
+ {{template "status" (WithContext .Status $.Ctx)}} + {{else}}
diff --git a/templates/status.tmpl b/templates/status.tmpl index 9bc1354..2551e80 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -233,8 +233,10 @@ {{if $.Ctx.ThreadInNewTab}}target="_blank"{{end}}> + + {{if .EditedAt}} {{end}} +