Page MenuHomePhabricator

[BUG] Feature article from /feed/featured endpoint is showing incorrect language variant on zhwiki
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The title and content show the original Chinese content instead of Traditional Chinese.

What should have happened instead?:
https://zh.wikipedia.org/wiki/3美分银币
Title: "3美分银币" -> "3美分銀幣"

The same things happen in displaytitle, titles, extract, extract_html, and normalizedtitle

Screenshot_20240116-125752_Wikipedia Dev.jpg (2×1 px, 139 KB)

Event Timeline

Move this ticket to Tracking on Android.

Duplicate of T315650, which already have a patch by me pending review.

Sbailey moved this task from In Progress to Backlog on the Wikifeeds board.
Sbailey subscribed.

Found a ticket related to this issue:
https://phabricator.wikimedia.org/T346657

This was because of disabling the zh variants in the code, that's why it always returns the plain zh articles.
https://github.com/wikimedia/mediawiki-services-wikifeeds/commit/45152699cd962c79a4081fa862b600afc11d3088#diff-4815ffd584cff578cfe52954adb185a990f536d20617219a84e5be315fd1ab52R113-R117

@Jgiannelos Any updates on the code above? Is it safe now to remove the special logic of stripping zh variants?

Change #1163440 had a related patch set uploaded (by Cooltey; author: Cooltey):

[mediawiki/services/wikifeeds@master] Remove the code that overrides the Accept-Language for zhwiki

https://gerrit.wikimedia.org/r/1163440

Change #1163440 merged by jenkins-bot:

[mediawiki/services/wikifeeds@master] Remove the code that overrides the Accept-Language for zhwiki

https://gerrit.wikimedia.org/r/1163440