Default avatar issue #1974

Closed
opened 2025-11-02 04:19:54 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @TinkoLiu on GitHub (Jun 25, 2018).

  • Gitea version (or commit ref):1.4.2
  • Git version:2.7
  • Operating system:Ubuntu Server 18.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
    Nothing here

Description

I've just installed a new gitea on my own server. It's working in OFFLINE MODE. I thought this should make gitea use a default avatar. But it continues generating new avatar. Both user and orgs avatar are random. I tried deleting the generated avatar image file, but it generates a new one immediatly on refreshing the page. Delete avatar button in profile still don't work. How can I make any user and orgs using the default avatar when they delete or didn't upload their avatar?

Originally created by @TinkoLiu on GitHub (Jun 25, 2018). - Gitea version (or commit ref):1.4.2 - Git version:2.7 - Operating system:Ubuntu Server 18.04 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: Nothing here ## Description I've just installed a new gitea on my own server. It's working in OFFLINE MODE. I thought this should make gitea use a default avatar. But it continues generating new avatar. Both user and orgs avatar are random. I tried deleting the generated avatar image file, but it generates a new one immediatly on refreshing the page. Delete avatar button in profile still don't work. How can I make any user and orgs using the default avatar when they delete or didn't upload their avatar?
Author
Owner

@TinkoLiu commented on GitHub (Jun 26, 2018):

OK, now I've read all the related code and closing this issue now. I modified the default value of 'use custom avatar' in SQL database and new users should not getting random avatar now. But if they click delete avatar button in their profile, the default avatar will gone again. I think I should stop struggling with the configurations and edit the code now, thanks.

@TinkoLiu commented on GitHub (Jun 26, 2018): OK, now I've read all the related code and closing this issue now. I modified the default value of 'use custom avatar' in SQL database and new users should not getting random avatar now. But if they click delete avatar button in their profile, the default avatar will gone again. I think I should stop struggling with the configurations and edit the code now, thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1974