-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use camo for medium and small avatars #5883
use camo for medium and small avatars #5883
Conversation
@@ -4,8 +4,8 @@ class AvatarPresenter < BasePresenter | |||
DEFAULT_IMAGE = ActionController::Base.helpers.image_path('user/default.png') | |||
|
|||
def base_hash | |||
{ small: image_url_small || DEFAULT_IMAGE, | |||
medium: image_url_medium || DEFAULT_IMAGE, | |||
{ small: image_url(:thumb_small) || DEFAULT_IMAGE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align the elements of a hash literal if they span more than one line.
Space inside { detected.
2065acf
to
6b28b03
Compare
{ small: image_url_small || DEFAULT_IMAGE, | ||
medium: image_url_medium || DEFAULT_IMAGE, | ||
{ | ||
small: image_url(:thumb_small) || DEFAULT_IMAGE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align the elements of a hash literal if they span more than one line.
6b28b03
to
81cc0a3
Compare
medium: image_url_medium || DEFAULT_IMAGE, | ||
large: image_url || DEFAULT_IMAGE | ||
{ | ||
small: image_url(:thumb_small) || DEFAULT_IMAGE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary spacing detected.
81cc0a3
to
56bc37b
Compare
56bc37b
to
344b198
Compare
use camo for medium and small avatars
Thank you! 🍪 |
on the contacts page, external urls were used without camo