From 2e06422b62d3a3993def8db758fb919fa39c37b0 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 13 Mar 2015 21:16:34 +0100 Subject: [PATCH] Shortened GIF guard --- public_html/templates/post-content.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/templates/post-content.tpl b/public_html/templates/post-content.tpl index ae37c090..b71908c3 100644 --- a/public_html/templates/post-content.tpl +++ b/public_html/templates/post-content.tpl @@ -1,5 +1,5 @@ <% - var postContentUrl = '/data/posts/' + post.name + '?x=' + Math.random() /* reset gif animations */ + var postContentUrl = '/data/posts/' + post.name + '?' + Math.round(Math.random() * 1000) /* reset gif animations */ var width; var height; if (post.contentType === 'image' || post.contentType === 'flash') {