testing-20250123 #6

Closed
Ghost wants to merge 18 commits from (deleted):testing-20250123 into main
Showing only changes of commit cfa93b9150 - Show all commits

View File

@ -8,7 +8,7 @@ const MIN_ADMIN_YES_VOTES = 9;
const GROUP_APPROVAL_FEATURE_TRIGGER_HEIGHT = 2012800 //TODO update this to correct featureTrigger height when known, either that, or pull from core.
let featureTriggerPassed = false
let isApproved = false
const spamNames = ["Exorcist"]
const loadMinterBoardPage = async () => {
// Clear existing content on the page
@ -1021,6 +1021,11 @@ const displayComments = async (cardIdentifier) => {
const commentHTMLArray = await Promise.all(
comments.map(async (comment) => {
try {
// If the name of the commenter is in the "spamNames" array, return null
if (spamNames.includes(comment.name)) {
console.warn(`Commenter ${comment.name} is in the spamNames array, skipping...`)
return null
}
const commentDataResponse = await qortalRequest({
action: "FETCH_QDN_RESOURCE",
name: comment.name,