mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +00:00
Don't cache your personal gravatar across gravatar updates.
(imported from commit 06f82faaa350db8a64cebef24b738b5e93bebb98)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
// scrollbar when we switch to a new tab (and restore it
|
||||
// when we switch back.)
|
||||
var scroll_positions = {};
|
||||
var gravatar_stamp = 1;
|
||||
|
||||
function register_onclick(message_row, message_id) {
|
||||
message_row.find(".messagebox").click(function (e) {
|
||||
@@ -461,8 +462,9 @@ $(function () {
|
||||
|
||||
function update_gravatars() {
|
||||
$.each($(".gravatar-profile"), function(index, profile) {
|
||||
$(this).attr('src', $(this).attr('src') + '?' + $.now());
|
||||
$(this).attr('src', $(this).attr('src') + '?stamp=' + gravatar_stamp);
|
||||
});
|
||||
gravatar_stamp += 1;
|
||||
}
|
||||
|
||||
function poll_for_gravatar_update(start_time, url) {
|
||||
|
||||
Reference in New Issue
Block a user