From 2a2303d1dccc120dd7aa5f6b6ade0f89e0064850 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Nov 2025 07:42:23 +0000
Subject: [PATCH] =Feed block mostly good! Referrals look good to go. Ready for Madi and Heidi to approve

---
 inc/managers/NotificationManager.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/inc/managers/NotificationManager.php b/inc/managers/NotificationManager.php
index abac97a..db4a598 100644
--- a/inc/managers/NotificationManager.php
+++ b/inc/managers/NotificationManager.php
@@ -435,6 +435,10 @@
      */
     public function trackContentCreation(int $post_id, WP_POST $post, bool $update):void
     {
+		// SAFETY: Skip attachments and other non-content post types
+		if (in_array($post->post_type, jvbIgnoredPostTypes())) {
+			return;
+		}
         // Skip if not a published post
         if ($post->post_status !== 'publish') {
             return;

--
Gitblit v1.10.0