# HG changeset patch # User Mikael Berthe # Date 1494458808 -7200 # Node ID e742059aa3e195823f70f54ba05393660d37271b # Parent 3dd35bdb63acb0f71a40f99202b5932cb004fb7d Fix in_reply_to_id format in templates diff -r 3dd35bdb63ac -r e742059aa3e1 templates/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}} diff -r 3dd35bdb63ac -r e742059aa3e1 templates/themes/ansi/notification.tmpl --- 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}}