[PR #3471] [MERGED] Fixes missing avatars in offline mode #16955

Closed
opened 2025-11-02 12:22:56 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3471
Author: @sdwolfz
Created: 2/7/2018
Status: Merged
Merged: 2/8/2018
Merged by: @bkcsoft

Base: masterHead: fix/missing-avatar


📝 Commits (2)

  • c2ea75a Fixes missing avatars in offline mode
  • a86c295 Merge branch 'master' into fix/missing-avatar

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 models/user.go (+3 -1)

📄 Description

Fixes #3464.

I got the idea for this fix from here.
Aparently in offline mode the avatar filename is already set before it is generated and this line overwrote it every time.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3471 **Author:** [@sdwolfz](https://github.com/sdwolfz) **Created:** 2/7/2018 **Status:** ✅ Merged **Merged:** 2/8/2018 **Merged by:** [@bkcsoft](https://github.com/bkcsoft) **Base:** `master` ← **Head:** `fix/missing-avatar` --- ### 📝 Commits (2) - [`c2ea75a`](https://github.com/go-gitea/gitea/commit/c2ea75a65462a778ae791e074837b928769c0858) Fixes missing avatars in offline mode - [`a86c295`](https://github.com/go-gitea/gitea/commit/a86c295272c2d7ad4a0aaee72ea98f0411c22b48) Merge branch 'master' into fix/missing-avatar ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/user.go` (+3 -1) </details> ### 📄 Description Fixes #3464. I got the idea for this fix from [here](https://github.com/go-gitea/gitea/pull/1131#discussion_r104576099). Aparently in offline mode the avatar filename is already set before it is generated and this line overwrote it every time. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:22:56 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16955