From 243b3264e92f7ebc3390e97a644f6ed35657c0d8 Mon Sep 17 00:00:00 2001 From: evazion Date: Fri, 2 Apr 2021 02:41:54 -0500 Subject: [PATCH] posts: fix posts with .jpeg file extension. There used to be about 1000 posts with a .jpeg file extension instead of .jpg. These posts have been fixed manually, so we no longer have to check for this any more. --- app/models/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index cf47c9b0e..a77f22ac0 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -182,7 +182,7 @@ class Post < ApplicationRecord end def is_image? - file_ext =~ /jpg|jpeg|gif|png/i + file_ext =~ /jpg|gif|png/i end def is_png?