From 772462eeca3002a1d52508aeba485aab2b4742ad Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 03 Mar 2026 19:06:19 +0000
Subject: [PATCH] =MAJOR OVERHAUL. Likely should have made a new branch ages ago. Key changes: Registrar.php is the base for custom post types, taxonomies, and user roles. Replaces JVB_CONTENT, JVB_TAXONOMY, and JVB_USER constants, eliminates most of Features.php (except for JVB_SITE, JVB_MEMBERSHIP), and has built in sanitizing and validation via sub-classes. Also started a major overhaul of the Schema output. Created a shit ton of property traits and classes to help sanitize and ensure proper data for different schema types. Still a bunch to do, but better to be starting committing changes here on this other branch.

---
 src/feed/view.js |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/feed/view.js b/src/feed/view.js
index 1248322..87e79b9 100644
--- a/src/feed/view.js
+++ b/src/feed/view.js
@@ -596,14 +596,16 @@
 			let link = termItem.querySelector('a');
 			if (!link) continue;
 
+			let title = window.decodeHTMLEntities(term.title);
+
 			[
 				link.href,
 				link.title,
 				link.textContent
 			] = [
 				term.url,
-				`See more ${term.title}`,
-				term.title
+				`See more ${title}`,
+				title
 			];
 			element.append(termItem);
 		}
@@ -621,7 +623,7 @@
 		element.textContent = window.formatTimeAgo(value, 'F Y');
 	}
 	formatField(element, value) {
-		element.textContent = value;
+		element.textContent = window.decodeHTMLEntities(value);
 	}
 
 	addTimelineElements(item, template) {
@@ -638,10 +640,10 @@
 		];
 
 		if (afterEl) {
-			afterEl.textContent = `After ${item.number} Tx`;
+			afterEl.textContent = `After ${item.number - 1} Tx`;
 		}
 		if (number) {
-			number.textContent = item.fields.number;
+			number.textContent = item.number - 1;
 		}
 		if (started) {
 			this.formatTimeField(started, item.fields.timeline[0]['post_date']);
@@ -671,7 +673,7 @@
 				el.dataset.id = data.id;
 				el.dataset.taxonomy = data.taxonomy;
 				if (refs.icon) refs.icon.className = `icon icon=${data.icon}`;
-				if (refs.span) refs.span.textContent = data.name;
+				if (refs.span) refs.span.textContent = window.decodeHTMLEntities(data.name);
 			}
 		});
 		T.define('emptyState');

--
Gitblit v1.10.0