mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 09:17:15 +08:00
FIX: N+1 query for avatars
This commit is contained in:
@ -85,7 +85,7 @@ class LocalStore
|
||||
end
|
||||
|
||||
def get_path_for_avatar(file, upload, size)
|
||||
relative_avatar_template(upload).gsub(/\{size\}/, size.to_s)
|
||||
relative_avatar_template(upload).gsub("{size}", size.to_s)
|
||||
end
|
||||
|
||||
def relative_avatar_template(upload)
|
||||
|
Reference in New Issue
Block a user