diff --git a/Changelog.md b/Changelog.md index d4f0f6686..fcf745ddf 100644 --- a/Changelog.md +++ b/Changelog.md @@ -15,6 +15,7 @@ * Fix src URL for oEmbed iFrame [#4178](https://github.com/diaspora/diaspora/pull/4178) * Add back-to-top button on tag and user pages [#4185](https://github.com/diaspora/diaspora/issues/4185) * Fix reopened issue by changing the comment/post submit keyboard sortcut to ctrl+enter from shift+enter [#3897](https://github.com/diaspora/diaspora/issues/3897) +* Show medium avatar in hovercard [#4203](https://github.com/diaspora/diaspora/pull/4203) ## Features diff --git a/app/presenters/hovercard_presenter.rb b/app/presenters/hovercard_presenter.rb index 368f8d95c..148f20d15 100644 --- a/app/presenters/hovercard_presenter.rb +++ b/app/presenters/hovercard_presenter.rb @@ -13,7 +13,7 @@ class HovercardPresenter # hovercard UI def to_json(options={}) { :id => person.id, - :avatar => avatar('small'), + :avatar => avatar('medium'), :url => profile_url, :name => person.name, :handle => person.diaspora_handle, @@ -23,7 +23,7 @@ class HovercardPresenter # get the image url of the profile avatar for the given size # possible sizes: 'small', 'medium', 'large' - def avatar(size="small") + def avatar(size="medium") if !["small", "medium", "large"].include?(size) raise ArgumentError, "the given parameter is not a valid size" end