feat(files_sharing): fetch remote avatars for external shares#62355
Open
leftybournes wants to merge 2 commits into
Open
feat(files_sharing): fetch remote avatars for external shares#62355leftybournes wants to merge 2 commits into
leftybournes wants to merge 2 commits into
Conversation
leftybournes
requested review from
Altahrim,
come-nc,
nfebe and
salmart-dev
and removed request for
a team
July 21, 2026 05:35
leftybournes
force-pushed
the
leftybournes/feat/federatedshares-show-avatars
branch
from
July 21, 2026 05:47
e064efd to
b8f517f
Compare
leftybournes
force-pushed
the
leftybournes/feat/federatedshares-show-avatars
branch
2 times, most recently
from
July 21, 2026 06:20
5f1c880 to
a17c574
Compare
provokateurin
requested changes
Jul 21, 2026
Comment on lines
+69
to
+72
| $contentType = $response->getHeader('Content-Type'); | ||
| if ($contentType !== 'image/png') { | ||
| throw new \Exception('Unknown filetype'); | ||
| } |
Member
There was a problem hiding this comment.
That seems a bit strict. If a user uploads their own avatar it is probably stored and served in the original format.
Member
Author
There was a problem hiding this comment.
I modified it to also check for jpgs
CarlSchwan
reviewed
Jul 21, 2026
| } | ||
| } | ||
|
|
||
| return new InMemoryFile('avatar.png', $avatar); |
Member
There was a problem hiding this comment.
so it's downloading the avatar each time? It might make sense to cache it for a bit
Member
Author
There was a problem hiding this comment.
Implemented it so that it downloads the avatar once a day (in case the remote user changed their avatar). Can you please give it a look?
Signed-off-by: Kent Delante <kent@delante.me> Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Kent Delante <kent@delante.me> Assisted-by: ClaudeCode:claude-sonnet-5
leftybournes
force-pushed
the
leftybournes/feat/federatedshares-show-avatars
branch
from
July 22, 2026 08:54
a17c574 to
318668e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Currently, external shares always show a
GuestAvatarin the files list. This adds functionality to fetch the remote sharer's avatar.Checklist
3. to review, feature component)stable32)AI (if applicable)