← back to Norma
IG captions: strip internal mfr SKU numbers from title (Koroseal '2308790' was leaking)
f0e553d0a1561bffe970790f992bf55515201256 · 2026-08-11 11:52:28 -0700 · Steve Abrams
Files touched
M agents/instagram-agent/content.js
Diff
commit f0e553d0a1561bffe970790f992bf55515201256
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Aug 11 11:52:28 2026 -0700
IG captions: strip internal mfr SKU numbers from title (Koroseal '2308790' was leaking)
---
agents/instagram-agent/content.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/agents/instagram-agent/content.js b/agents/instagram-agent/content.js
index a560bfd..bb791b0 100644
--- a/agents/instagram-agent/content.js
+++ b/agents/instagram-agent/content.js
@@ -31,7 +31,12 @@ const SERVICE_LINES = [
'Beautifully made and built to last. Designer Wallcoverings brings the sampling, specification, and service serious projects demand.',
];
function autoCaption(p, url) {
- const title = String(p.title || 'Designer Wallcovering').split('|')[0].trim();
+ const title = String(p.title || 'Designer Wallcovering')
+ .split('|')[0]
+ .replace(/\b\d{5,}\b/g, '') // strip internal mfr SKU numbers (e.g. Koroseal "2308790")
+ .replace(/\s{2,}/g, ' ')
+ .replace(/\s+-\s*$/, '')
+ .trim() || 'Designer Wallcovering';
const type = (p.product_type || 'wallcovering').toLowerCase();
const tag = type.replace(/[^a-z0-9]/g, '');
const tagLine = tag && tag !== 'wallcovering' ? ` #${tag}` : '';
← 4dbe72e IG: private-label leak guard — refuse to post products whose
·
back to Norma
·
IG daily cadence: 1 post/day per account, 6 days/week (rest 18ad401 →