#23 open
Scott M. Likens

RFC: feather-comments (Gravatar Support)

Reported by Scott M. Likens | August 2nd, 2008 @ 05:50 AM | in 1.0

Had a conversation with fujin earlier about basic Gravatar support into feather-comments. It unfortunately deals with details that I consider pertinent, and feel we should get a opinion on as a whole.

Option 1) (what Github does), Check if they have a Gravatar image (perhaps a flag stored in a database, don't know, don't care) and then , of course this includes more detail in our view. We have to check if they have a gravatar image, and if they do display it, if they don't, don't display it. Complexity that I am not a big fan of. I'm sure there is ways to improve on this, but I consider this 'heavy' as a whole.

Option 2) When a comment is made, a do_later is called to check if the email address given in the Comment Email Field has a Gravatar, and if it does fetch the image and store it locally. Now of course this is not exactly 'light' however I personally find it more render friendly if I can go into detail.

For example, comment is made and the user has no gravatar at all, we can then symlink a 'dummy' image to their email address and the becomes a dummy image, no extra disk space is used, and either a HTTP 302 is sent, or the image is sent.

More so, they have a gravatar, the do_later is called, we fetch the gravatar and store it appropriately, and it is displayed without any <% if %> <% else %> etc...

In option 2 I mention a hashing scheme, a rather 'bushy' schema that basically is

tld ->

domain ->

firstportionofemailaddress

So you have

public/files/com/gmail/fujin.jpg

public/files/com/gmail/dumbo.jpg

public/files/dk/livid/damm.jpg

The idea is, if you have 1000 comments for one article, that's 1000 images in your files/images/gravatar folder, now you compound that by 500 articles with the same amount and you have a crapload of images. However in a bushy schema, you can prune and symlink it to the dummy image to save disk space and inodes easily. Let's say you have 5000 google users.

Well then you can replace all the google gravatar's with the dummy, or a google logo, or however you want postmortem.

... The goal of this, is a discussion of how we should, or not implement this. Of course this support will go into feather-comments code. I imagine it will stir up ideas, and well that's the goal.

For the sake of sakes, no one is responsible for now btw.

Comments and changes to this ticket

  • El Draper

    El Draper August 8th, 2008 @ 08:51 PM

    • → Milestone changed from “” to “1.0”
    • → State changed from “new” to “open”
    • → Assigned user changed from “” to “El Draper”

    I like the idea of gravatar support definitely, not sure about local storage of the avatar images though. We should probably start with the most lightweight solution first of all, and take it from there.

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A robust set of plugins that'll allow the lightweight Feather core to be extended with various functionality.

People watching this ticket

Tags