commons-app / apps-android-commons

The Wikimedia Commons Android app allows users to upload pictures from their Android phone/tablet to Wikimedia Commons
https://commons-app.github.io/
Apache License 2.0
1.03k stars 1.23k forks source link

[Bug]: Link to actual username page if a licensing name is set #5803

Open ivanbranco opened 2 months ago

ivanbranco commented 2 months ago

Summary

Let's say my username is zzz, and I want to be licensed as yyy. In the Wikimedia Commons website settings you can choose a licensing name, that will create author=[[User:zzz|yyy]] on future uploads. In the Wikimedia Commons app there's also an option to choose the licensing name, but this created author=[[User:yyy|yyy]], which links to a non existent user page.

Steps to reproduce

  1. Open the app
  2. Hamburger menu
  3. Settings (gear icon)
  4. Uploads > Personalised author name
  5. Type your author name and press OK
  6. Upload a file
  7. Check the result

Expected behaviour

Add author=[[User:zzz|yyy]] instead of author=[[User:yyy|yyy]].

Actual behaviour

Adds author=[[User:yyy|yyy]] instead of author=[[User:zzz|yyy]].

Device name

Google Pixel 6

Android version

Android 14

Commons app version

5.0.2

Device logs

No response

Screen-shots

No response

Would you like to work on the issue?

None

qinjuewu00 commented 1 month ago

Hi, I have an idea for fixing this bug. Can you assign this issue to me?

nicolas-raoul commented 1 month ago

Example image: https://commons.wikimedia.org/wiki/File:%E6%9D%89%E4%B8%A6%E5%8C%BA_%E5%A4%A7%E5%AE%AE%E5%85%AB%E5%B9%A1%E5%AE%AE.jpg notice how the author field is a red link.

The task involves modifying how the app generates the wikicode of the image description.