apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

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

Open ivanbranco opened this issue 1 year ago • 2 comments

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

ivanbranco avatar Sep 02 '24 08:09 ivanbranco

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

qinjuewu00 avatar Oct 15 '24 14:10 qinjuewu00

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.

nicolas-raoul avatar Oct 16 '24 12:10 nicolas-raoul