This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 86d89b7  Document variable dependency
86d89b7 is described below

commit 86d89b7ebf70e40102aee1ad57ac2f9801731a07
Author: Sebb <[email protected]>
AuthorDate: Thu Nov 18 00:36:26 2021 +0000

    Document variable dependency
---
 webui/js/config.js | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/webui/js/config.js b/webui/js/config.js
index a900a70..5caa435 100644
--- a/webui/js/config.js
+++ b/webui/js/config.js
@@ -49,6 +49,12 @@ var pm_config = {
     LOTS_OF_LISTS: 25 // Beyond this number of list domains we start using the 
old phonebook.
 }
 
+// Gravatar support. Defaults to using the gravatar proxy.
+const GRAVATAR_URL = "/api/gravatar?md5=%s"; // This must agree with apiURL 
above
+// TODO generate the correct URL if apiURL changes
+
+// For performance or other reasons, this can be set to the origin by 
uncommenting the below:
+// const GRAVATAR_URL = 
"https://secure.gravatar.com/avatar/%s.png?s=96&r=g&d=mm";;
 
 
 // Localized preferences (defaults)
@@ -65,8 +71,3 @@ var prefs = {
     UTC: false,                     // Use UTC for timestamps in UI. If false, 
use browser local time.
     title: "Apache Pony Mail"       // Default browser window title
 }
-
-// Gravatar support. Defaults to using the gravatar proxy.
-const GRAVATAR_URL = "/api/gravatar?md5=%s";
-// For performance or other reasons, this can be set to the origin by 
uncommenting the below:
-// const GRAVATAR_URL = 
"https://secure.gravatar.com/avatar/%s.png?s=96&r=g&d=mm";;

Reply via email to