Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Jul 25, 2023
1 parent 379cb18 commit 670e893
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/friendlytag.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ Twinkle.tag.callback = function friendlytagCallback() {
// figure out whether the article is marked as reviewed in PageTriage
var isReviewed = false;
var isOldPage = response.pagetriagelist.result !== 'success' || response.pagetriagelist.pages.length === 0;
var isMarkedAsReviewed = response.pagetriagelist.pages[0].patrol_status > 0;
// Recent articles will have a patrol_status that we can read.
// For articles that have been out of the new pages feed for awhile, pages[0] will be undefined.
var isMarkedAsReviewed = response.pagetriagelist.pages[0] ?
response.pagetriagelist.pages[0].patrol_status > 0 :
true;

if (isOldPage || isMarkedAsReviewed) {
isReviewed = true;
}
Expand Down

0 comments on commit 670e893

Please sign in to comment.