You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2025/05/20 06:33:37 UTC

(answer) branch test updated: fix: admin gravatar base URL is empty should use placehoder for default value

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

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git


The following commit(s) were added to refs/heads/test by this push:
     new cde3ef96 fix: admin gravatar base URL is empty should use placehoder for default value
cde3ef96 is described below

commit cde3ef96898d5e12624f1e08a1147187bc2de499
Author: shuai <li...@sifou.com>
AuthorDate: Tue May 20 14:30:33 2025 +0800

    fix: admin gravatar base URL is empty should use placehoder for default value
---
 ui/src/pages/Admin/SettingsUsers/index.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ui/src/pages/Admin/SettingsUsers/index.tsx b/ui/src/pages/Admin/SettingsUsers/index.tsx
index e2714790..e0980980 100644
--- a/ui/src/pages/Admin/SettingsUsers/index.tsx
+++ b/ui/src/pages/Admin/SettingsUsers/index.tsx
@@ -94,6 +94,9 @@ const Index: FC = () => {
     },
     gravatar_base_url: {
       'ui:widget': 'input',
+      'ui:options': {
+        placeholder: 'https://www.gravatar.com/avatar/',
+      },
     },
     profile_editable: {
       'ui:widget': 'legend',
@@ -186,7 +189,7 @@ const Index: FC = () => {
           v = 'system';
         }
         if (k === 'gravatar_base_url' && !v) {
-          v = 'https://www.gravatar.com/avatar/';
+          v = '';
         }
         formMeta[k] = { ...formData[k], value: v };
       });