wikimedia-gadgets / afc-helper

A tool for reviewing Articles for Creation submissions on the English Wikipedia
https://en.wikipedia.org/wiki/Wikipedia:AFCH
GNU General Public License v3.0
36 stars 80 forks source link

Displaying "This submission may contain copyright violations" is broken #324

Closed NovemLinguae closed 7 months ago

NovemLinguae commented 7 months ago

There is code in AFCH to display "This submission may contain copyright violations" if the Turnitin API detects the draft to be a copyright violation. This is handled by User:CopyPatrolBot and the pagetriagetagcopyvio API.

However I can't recall ever having seen this warning in AFCH.

When I clicked open 25 of the latest drafts tagged as copyvio just now, I could not get the warning to show up.

https://en.wikipedia.org/wiki/Draft:2028_United_States_presidential_election_in_Massachusetts only has one revision, so the triageInfo && triageInfo.copyvio === mw.config.get( 'wgCurRevisionId' ) line of code should be satisfied. I can't think of a reason for this warning not to show up on that draft.

I think this feature is completely broken. Needs fixing.

Will debug this once I receive copyviobot permissions on testwiki: https://test.wikipedia.org/wiki/Wikipedia:Requests/Permissions/Novem_Linguae_4