Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fixes #5856) Unchanged / inconsistent username in different pages . (#5856) #5856 #5860

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

lzh12311
Copy link
Contributor

@lzh12311 lzh12311 commented Oct 16, 2024

Description (required)

Fixes #5856

What changes did you make and why?

Use the getAuthor(metadata) instead of imageInfo.user

The original code used imageInfo.user, which simply fetched the registered username of the media uploader. In contrast, the new code employs getAuthor(metadata), pulling the author information from the ExtMetadata object to emphasize the custom author name. This adjustment is deliberate, ensuring that the licensing name (custom author name) is showcased in the user profile rather than the default registered username.

Tests performed (required)

Tested {ProdDebug} on {MuMu emulator Android 12} with API level {API 34}.

Screenshots (for UI changes only)

3161729077628_ pic

3171729077628_ pic

Need help? See https://support.google.com/android/answer/9075928


Note: Please ensure that you have read CONTRIBUTING.md if this is your first pull request.

@nicolas-raoul
Copy link
Member

Code looks good!
If you think it is ready, please remove the "draft" status of this pull request and I will review. :-)

@nicolas-raoul
Copy link
Member

Actually I just tested and it seems to work.

@lzh12311 lzh12311 marked this pull request as ready for review October 16, 2024 12:24
@lzh12311
Copy link
Contributor Author

I've removed the draft status/

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, fixes the issue in Explore

@nicolas-raoul nicolas-raoul merged commit ef3f6b7 into commons-app:main Oct 16, 2024
1 check passed
@nicolas-raoul
Copy link
Member

Thanks a lot! :-)

parneet-guraya added a commit to parneet-guraya/apps-android-commons that referenced this pull request Feb 24, 2025
parneet-guraya added a commit to parneet-guraya/apps-android-commons that referenced this pull request Feb 24, 2025
parneet-guraya added a commit to parneet-guraya/apps-android-commons that referenced this pull request Mar 3, 2025
nicolas-raoul pushed a commit that referenced this pull request Mar 8, 2025
* revert changes from #5860

Signed-off-by: parneet-guraya <[email protected]>

* read author prop instead

Signed-off-by: parneet-guraya <[email protected]>

* Use user prop if author is empty or null

Signed-off-by: parneet-guraya <[email protected]>

* fix test

Signed-off-by: parneet-guraya <[email protected]>

---------

Signed-off-by: parneet-guraya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Unchanged / inconsistent username in different pages
2 participants