Fix in_reply_to_id format in templates
authorMikael Berthe <mikael@lilotux.net>
Thu, 11 May 2017 01:26:48 +0200
changeset 117 e742059aa3e1
parent 116 3dd35bdb63ac
child 118 1c062577f5d1
Fix in_reply_to_id format in templates
templates/ansi-notification.tmpl
templates/themes/ansi/notification.tmpl
--- a/templates/ansi-notification.tmpl	Wed May 10 20:13:31 2017 +0200
+++ b/templates/ansi-notification.tmpl	Thu May 11 01:26:48 2017 +0200
@@ -16,14 +16,14 @@
       Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
       Date: {{.created_at}}
 {{- if gt .in_reply_to_id 0.0}}
-      Replying to: {{.in_reply_to_id}}{{end}}
+      Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
 {{- if .sensitive}}
       Sensitive: true{{end}}
 {{- with .spoiler_text}}
       Spoiler: {{.}}{{end}}
       Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}{{end}}{{else}}
 {{- if gt .in_reply_to_id 0.0}}
-    Replying to: {{.in_reply_to_id}}{{end}}
+    Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
 {{- if .sensitive}}
   Sensitive: true{{end}}
 {{- with .spoiler_text}}
--- a/templates/themes/ansi/notification.tmpl	Wed May 10 20:13:31 2017 +0200
+++ b/templates/themes/ansi/notification.tmpl	Thu May 11 01:26:48 2017 +0200
@@ -16,14 +16,14 @@
       Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
       Date: {{.created_at}}
 {{- if gt .in_reply_to_id 0.0}}
-      Replying to: {{.in_reply_to_id}}{{end}}
+      Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
 {{- if .sensitive}}
       Sensitive: true{{end}}
 {{- with .spoiler_text}}
       Spoiler: {{.}}{{end}}
       Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}{{end}}{{else}}
 {{- if gt .in_reply_to_id 0.0}}
-    Replying to: {{.in_reply_to_id}}{{end}}
+    Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
 {{- if .sensitive}}
   Sensitive: true{{end}}
 {{- with .spoiler_text}}