Opened 19 months ago

Closed 2 months ago

#1688 closed task (fixed)

Add libravatar support to MediaWiki

Reported by: strk Owned by: sac@…
Priority: minor Milestone:
Component: Wiki Keywords: wiki, avatar
Cc:

Description

libravatar is a federated avatar service. Avatars for email are retrived by looking up the mail domain DNS.

See https://www.mediawiki.org/wiki/Extension:Libravatar

Attachments (1)

avatar_https_issue.png (35.9 KB) - added by neteler 3 months ago.
Screenshot of broken https wiki connection

Download all attachments as: .zip

Change History (18)

comment:1 Changed 19 months ago by strk

Keywords: avatar added

comment:2 Changed 19 months ago by strk

Component: WebSiteWiki
Owner: changed from webcom@… to christian

comment:3 Changed 4 months ago by strk

Priority: normalminor

comment:4 Changed 3 months ago by Jeff McKenna

I've installed this libravatar extension. You can see it in action at the top of my profile page: https://wiki.osgeo.org/wiki/Jeff_McKenna

The syntax is:

<libravatar email="jmckenna(at)osgeo(dot)org"/>

comment:5 Changed 3 months ago by strk

Nice :) I wonder if we can make it automatically shown in the user table, like I did manually here: https://wiki.osgeo.org/wiki/Sandro_Santilli

comment:6 Changed 3 months ago by strk

Resolution: fixed
Status: newclosed

I did the automatism: https://wiki.osgeo.org/index.php?title=Template:OSGeo_Member&action=edit

Happy now, closing :)

Thank you Jeff!

comment:7 Changed 3 months ago by neteler

I notice that the avatar is added via http and not https, see

https://wiki.osgeo.org/wiki/Jeff_McKenna

--> media link is: http://cdn.libravatar.org/avatar/0a704ecea4b9ac81d60689bd711ae938?size=32

Like this the https connection is downgraded to http. Perhaps it needs some other setting in the Extension:Libravatar?

comment:8 Changed 3 months ago by Jeff McKenna

I'm not aware of such a setting.

comment:9 Changed 3 months ago by strk

I checked this, and found that the plugin should theoretically use HTTPS when HTTPS was used to access the page. Indeed that works for me, ie: I see an https url to the avatar of Jeff_McKenna when going to the link you posted, Markus. Can you reproduce your obtaining http instead ?

Maybe the detection happens once so if the first request was an HTTP it will stick for future requests ? I've filed the issue here anyway: https://github.com/netresearch/mediawiki-libravatar/issues/2

comment:10 in reply to:  9 Changed 3 months ago by neteler

Resolution: fixed
Status: closedreopened

Replying to strk:

I checked this, and found that the plugin should theoretically use HTTPS when HTTPS was used to access the page. Indeed that works for me, ie: I see an https url to the avatar of Jeff_McKenna when going to the link you posted, Markus. Can you reproduce your obtaining http instead ?

Still http, see attachment.

And, if you right-click, open-image you still get this link:

http://www.gravatar.com/avatar/0a704ecea4b9ac81d60689bd711ae938.jpg?r=g&s=32&d=http://cdn.libravatar.org/nobody/32.png

Maybe the detection happens once so if the first request was an HTTP it will stick for future requests ?

Mhh, no idea.

I've filed the issue here anyway: https://github.com/netresearch/mediawiki-libravatar/issues/2

Changed 3 months ago by neteler

Attachment: avatar_https_issue.png added

Screenshot of broken https wiki connection

comment:11 Changed 3 months ago by strk

Today I'm also getting http instead of https, this is really odd now... Can you check if you get http on my page too ? https://wiki.osgeo.org/wiki/Sandro_Santilli

I get https there.

EDIT: as the two pages were using two different tags, I changed Jeff page tag to be <Libravatar>EMAIL</Libravatar> instead of <Libravatar email="EMAIL" /> And now I get HTTPS in Jeffs page too. Does it work for you too now ?

comment:12 Changed 3 months ago by strk

Owner: changed from christian to sac@…
Status: reopenednew

Reassigning to SAC

comment:13 in reply to:  11 Changed 3 months ago by neteler

Replying to strk:

Today I'm also getting http instead of https, this is really odd now... Can you check if you get http on my page too ? https://wiki.osgeo.org/wiki/Sandro_Santilli

At time there is no avatar entry, right?

comment:14 Changed 3 months ago by strk

On my page avatar is the one on the top-right corner of the "OSGeo Member" tab. It's done automatically by the template, using the "Email" field (try it on your page!)

comment:15 in reply to:  14 Changed 3 months ago by neteler

Replying to strk:

On my page avatar is the one on the top-right corner of the "OSGeo Member" tab. It's done automatically by the template, using the "Email" field (try it on your page!)

ok got it! Yes, your's in now in https.

comment:16 Changed 3 months ago by strk

Mine was in https even before. What about Jeff's, do you get Jeff's in https too ?

Can you check with your page too ? My current observation is:

  • Using <Libravatar email=".." /> produces http
  • Using <Libravatar>...</Libravatar> produces https
  • Using OSGeo member form uses the <Libravatar>...</Libravatar> format

comment:17 Changed 2 months ago by strk

Resolution: fixed
Status: newclosed

I'm closing this, it works for me and 11 days are too much for replying :)

Note: See TracTickets for help on using tickets.