feat(seo): index public online pages without confirmation
Memind CI / Test, build, and release guards (push) Failing after 5m19s
Memind CI / Test, build, and release guards (push) Failing after 5m19s
Drop the user_confirmed_at gate so public, online, unexpired pages can enter sitemap/llms and receive SEO/GEO tags. Defaults now enable all discovery switches; stored all-off config is still preserved until admin saves. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,6 +17,13 @@ test('isPublicationIndexable accepts confirmed public online publications', () =
|
||||
assert.equal(isPublicationIndexable(indexablePublication), true);
|
||||
});
|
||||
|
||||
test('isPublicationIndexable accepts public online pages without confirmation', () => {
|
||||
assert.equal(
|
||||
isPublicationIndexable({ ...indexablePublication, userConfirmedAt: null }),
|
||||
true,
|
||||
);
|
||||
});
|
||||
|
||||
test('isPublicationIndexable rejects private access modes', () => {
|
||||
for (const accessMode of ['password', 'private_link', 'login_required', 'owner_only']) {
|
||||
assert.equal(
|
||||
@@ -44,7 +51,7 @@ test('resolveIndexPolicy noindexes non-public publications when enabled', () =>
|
||||
assert.equal(policy.injectNoindex, true);
|
||||
});
|
||||
|
||||
test('resolveIndexPolicy marks confirmed public pages indexable', () => {
|
||||
test('resolveIndexPolicy marks public online pages indexable', () => {
|
||||
const policy = resolveIndexPolicy({
|
||||
seoGeoConfig: {
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user