posts: use 180x180 thumbnails in place of 150x150 thumbnails.

For small thumbnails, use 180x180 thumbnails scaled down to 150x150.
This is so we can get rid of 150x150 images and just use 180x180 for
both small and medium size thumbnails.

Also fix RSS feeds, XML sitemaps, and Discord embeds to use 360x360
thumbnails instead of 150x150 thumbnails.
This commit is contained in:
evazion
2021-12-13 02:01:39 -06:00
parent 9eed21ef14
commit e04892fb38
8 changed files with 11 additions and 15 deletions

View File

@@ -93,7 +93,7 @@ class CommentsController < ApplicationController
@comments = Comment.paginated_search(params)
if request.format.atom?
@comments = @comments.includes(:creator, :post)
@comments = @comments.includes(:creator, post: [:media_asset])
@comments = @comments.select { |comment| comment.post.visible? }
elsif request.format.html?
@comments = @comments.includes(:creator, :updater, post: [:uploader, :media_asset])