This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 255cacd65ce9c363e2d8270e20eb776b7ba793e4 Author: Daniel Gruno <[email protected]> AuthorDate: Thu Oct 28 22:42:11 2021 +0200 use the new gravatar_url variable --- webui/js/source/listview-flat.js | 2 +- webui/js/source/listview-threaded.js | 2 +- webui/js/source/render-email.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webui/js/source/listview-flat.js b/webui/js/source/listview-flat.js index b7f442d..1cc22e1 100644 --- a/webui/js/source/listview-flat.js +++ b/webui/js/source/listview-flat.js @@ -77,7 +77,7 @@ function listview_flat_element(eml, idx) { // Add gravatar let gravatar = new HTML('img', { class: "gravatar", - src: "https://secure.gravatar.com/avatar/%s.png?s=96&r=g&d=mm".format(eml.gravatar) + src: gravatar_url.format(eml.gravatar) }); element.inject(gravatar); diff --git a/webui/js/source/listview-threaded.js b/webui/js/source/listview-threaded.js index 364aef8..fab9bcf 100644 --- a/webui/js/source/listview-threaded.js +++ b/webui/js/source/listview-threaded.js @@ -120,7 +120,7 @@ function listview_threaded_element(thread, idx) { // Add gravatar let gravatar = new HTML('img', { class: "gravatar", - src: "https://secure.gravatar.com/avatar/%s.png?s=96&r=g&d=mm".format(eml.gravatar) + src: gravatar_url.format(eml.gravatar) }); element.inject(gravatar); diff --git a/webui/js/source/render-email.js b/webui/js/source/render-email.js index 7c2868e..4bb6c7d 100644 --- a/webui/js/source/render-email.js +++ b/webui/js/source/render-email.js @@ -200,7 +200,7 @@ async function render_email_chatty(state, json) { }); let gravatar = new HTML('img', { class: "chatty_gravatar", - src: "https://secure.gravatar.com/avatar/%s.png?s=96&r=g&d=mm".format(json.gravatar) + src: gravatar_url.format(json.gravatar) }); let author_name = json.from.replace(/\s*<.+>/, "").replace(/"/g, ''); let author_email = json.from.match(/\s*<(.+@.+)>\s*/);
