Browse Source

fix: Fixed unnecessary title processing on update

pull/7619/head
Ruslan Semak 2 months ago
parent
commit
46a103fe8f
1 changed files with 1 additions and 1 deletions
  1. 2
      server/models/pages.js

2
server/models/pages.js

@ -391,7 +391,7 @@ module.exports = class Page extends Model {
// -> Ruslan: Check for title changes => Update all other links names to this page
// На pageLinks опираться нельзя, т.r. авто-сгенерированные страницы не добавляются в pageLink
if (ogPage.title !== opts.title) {
if (opts.title && ogPage.title !== opts.title) {
const allPages = await WIKI.models.pages.query()
const mentionedInPages = allPages.filter(page => page.content.includes(ogPage.path))

Loading…
Cancel
Save