show medium avatar in hovercard
This commit is contained in:
parent
653f7566df
commit
17876d1de6
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue