Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Release copy: keep the hashtag and draft-check helpers module-private

Claude50d5cd114480
diff --git a/server/services/musicVideo/publishKit.js b/server/services/musicVideo/publishKit.js
index 824da5fb33..8cd5689053 100644
--- a/server/services/musicVideo/publishKit.js
+++ b/server/services/musicVideo/publishKit.js
@@ -237,7 +237,7 @@ export async function updatePublishKitCopy(projectId, patch) {
const sameTags = (a, b) => Array.isArray(b) && b.length > 0 && a.length === b.length && a.every((t, i) => t === b[i]);
/** True when a post was written or edited by hand after the last draft (or with no draft yet). */
-export function copyEditedSinceDraft(kit) {
+function copyEditedSinceDraft(kit) {
const edited = Date.parse(kit?.copyEditedAt || '');
if (!Number.isFinite(edited)) return false;
const drafted = Date.parse(kit?.copyDraftedAt || '');
diff --git a/server/services/musicVideo/publishKitText.js b/server/services/musicVideo/publishKitText.js
index 8d8d2c296c..4946fb2518 100644
--- a/server/services/musicVideo/publishKitText.js
+++ b/server/services/musicVideo/publishKitText.js
@@ -123,8 +123,8 @@ const str = (v, max) => (typeof v === 'string' && v.trim() ? v.trim().slice(0, m
* appears unless they asked for them. `length: 'short'` keeps every post to a
* sentence or two.
*/
-export const DEFAULT_COPY_INCLUDE = Object.freeze({ title: true, lyrics: false, spend: false, chapters: false, hashtags: false });
-export const COPY_LENGTHS = Object.freeze(['short', 'full']);
+const DEFAULT_COPY_INCLUDE = Object.freeze({ title: true, lyrics: false, spend: false, chapters: false, hashtags: false });
+const COPY_LENGTHS = Object.freeze(['short', 'full']);
export function normalizeCopyOptions({ include, length } = {}) {
const src = include && typeof include === 'object' ? include : {};
@@ -164,7 +164,7 @@ const CLOSING = /^[,.;:!?)\]}]/;
* mid-line leaves a single space, so indentation and markdown line breaks
* elsewhere are untouched.
*/
-export function stripHashtags(text) {
+function stripHashtags(text) {
let droppedLine = false;
const out = String(text || '').replace(HASHTAG_RUN, (match, lead, trail, offset, whole) => {
const end = offset + match.length;