diff --git a/s/item.tpl.html b/s/item.tpl.html index f086fad..22f680b 100644 --- a/s/item.tpl.html +++ b/s/item.tpl.html @@ -8,6 +8,11 @@
[ID: {{ id }} | by: {{ username }}]
f0ck.me

+ {% if thumb != null %} +
+ +
+ {% endif %}
{% if item == "video" %} diff --git a/s/style.css b/s/style.css index 7945221..6fbbca4 100644 --- a/s/style.css +++ b/s/style.css @@ -51,7 +51,7 @@ a:hover { color: #74c100; } -.medium { +.medium, .thumbnail { display: flex; justify-content: center; align-items: center; diff --git a/src/websrv.js b/src/websrv.js index 371bd91..b091150 100644 --- a/src/websrv.js +++ b/src/websrv.js @@ -106,6 +106,7 @@ function Websrv(tbot, tsql, tlib) { size: '', userchannel: '', usernetwork: '', + thumb: null, next: null, prev: null }; @@ -131,6 +132,7 @@ function Websrv(tbot, tsql, tlib) { data.srcurl = e.src; data.src = urlm.parse(e.src).hostname; + data.thumb = (e.thumb != '' && e.thumb.match(/sndcdn\.com/i))?e.thumb:null; data.dest = e.dest; data.mime = e.mime;