User:DreamRimmer/adminnewslettertools.js: Difference between revisions

Content deleted Content added
fixes
add convenient-discussions tag (DR)
 
(2 intermediate revisions by the same user not shown)
Line 614:
format: 'json'
}).then(revisions => {
const filtered = revisions.filter(rev => rev.tags && (rev.tags.includes('discussiontools-newtopic') || rev.tags.includes('convenient-discussions')));
return createEditTable('ArbCom topics', filtered, true);
});
Line 849:
let pageName, anchor, displayTitle;
const link = match[1];
displayTitle = match[2] || (anchor ? `${link}#${anchor}` : link);
if (link.includes('#')) {
[pageName, anchor] = link.split('#');
Line 918 ⟶ 917:
rfcs.forEach(rfc => {
const uniqueKey = if (rfcMap.has(`${rfc.url)) }|${rfc.title}`;
if const existing = (rfcMap.gethas(rfc.urluniqueKey);) {
const existing = rfcMap.get(uniqueKey);
if (!existing.topics.includes(rfc.topic)) {
existing.topics.push(rfc.topic);
}
} else {
rfcMap.set(rfc.urluniqueKey, {
...rfc,
topics: [rfc.topic]