From d14b8eac678535cb4693635190fb86358c40a93e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 21 Jan 2025 15:24:47 -0500 Subject: Hide broken pfp images --- web/views/index.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/views/index.haml b/web/views/index.haml index 186dd40..e605548 100644 --- a/web/views/index.haml +++ b/web/views/index.haml @@ -19,6 +19,6 @@ %td.score-index #{index+1}. %td.score-pfp - if !score.avatar_url.nil? - %img{ src: score.avatar_url } + %img{ src: score.avatar_url, onerror: "this.style='display:none'" } %td.score-name= score.username %td.score-value= score.score -- cgit 1.4.1