mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
[PR #406] [MERGED] fix: create reusable default profile pictures #817
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/406
Author: @kmendell
Created: 3/31/2025
Status: ✅ Merged
Merged: 4/3/2025
Merged by: @kmendell
Base:
main← Head:fix/pfp-cache📝 Commits (10+)
6667d4cfix: use initials for default profile pictureba6e04afix: incorrect profile picture callback on account pagedcba03badd migration logic for new profile pictures578e021move openapi3 comment to main.goe233ec4check error return valuecb3b124remove my comments68d834fMerge branch 'main' into fix/pfp-cache9d815d1move initials function to user struct3e043f1remove migration430df07add job to clear unused profile pictures📊 Changes
9 files changed (+166 additions, -46 deletions)
View changed files
📝
backend/cmd/main.go(+4 -0)📝
backend/internal/bootstrap/router_bootstrap.go(+1 -3)📝
backend/internal/job/db_cleanup_job.go(+7 -27)➕
backend/internal/job/file_cleanup_job.go(+78 -0)➕
backend/internal/job/job.go(+27 -0)📝
backend/internal/model/user.go(+13 -0)📝
backend/internal/service/user_service.go(+33 -2)📝
backend/internal/utils/image/profile_picture.go(+1 -12)📝
frontend/src/routes/settings/account/account-form.svelte(+2 -2)📄 Description
Fixes: https://github.com/pocket-id/pocket-id/issues/390
This PR also include a fix for the Uploading and Resetting of profile pictures on the My Account page:
ba6e04aa4a🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.