Skip to content

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
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
parneet-guraya added a commit to parneet-guraya/apps-android-commons that referenced this pull request Feb 24, 2025
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
parneet-guraya added a commit to parneet-guraya/apps-android-commons that referenced this pull request Mar 3, 2025
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
nicolas-raoul pushed a commit that referenced this pull request Mar 8, 2025
* revert changes from #5860

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>

* read author prop instead

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>

* Use user prop if author is empty or null

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>

* fix test

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>

---------

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
sonalyadav1 pushed a commit to sonalyadav1/apps-android-commons that referenced this pull request May 22, 2025
* revert changes from commons-app#5860

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>

* read author prop instead

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>

* Use user prop if author is empty or null

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>

* fix test

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>

---------

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
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