diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-30 11:13:31 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-30 11:24:01 -0400 |
commit | bb44bac175c530a2b6099011e4dc25acc0da4b9e (patch) | |
tree | 75f82f292ca50d78b7b68a056c64ddeb2defcb7b /Bundle | |
parent | 51e8a4eeda24f0a2cfdb0e579ddf1e6df9972544 (diff) |
look up avatar at comment post time
There is a tension between looking up the avatar at post time
and build time. I have not yet decided which is better.
Lookup at build time has the benefit that if a user changes their
email address, or sets up their own federated libravatar
server, on rebuild their new avatar will show up.
It also allows getting a https version of the avatar easily if
the site was using http but was changed to use https.
And it can look up avatars for posts that have already been made.
Which is a nice thing, especially as we roll this out, eh?
But it has a drawback, that it depends on the sessiondb contents
for emails and so rebuilding a site w/o that will lose info.
And, it means dns lookups every time a comment is rendered. A page
with a lot of comments on it would render them all whenever another is
posted or the page is changed, and that could significantly slow things
down. (This could be amelorated by caching the lookups.)
Since I'm undecided, I have moved it into a function that could be called
either way. Currently looking up only at post time.
Diffstat (limited to 'Bundle')
0 files changed, 0 insertions, 0 deletions