« get me outta code hell

content, wiki-data: skip wiki commentary advertising dedicated page - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateAlbumInfoPage.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-03-19 12:42:18 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-03-19 12:42:18 -0300
commit67e9f678daa0d715d96d3582672f17c3c0f3ebc0 (patch)
treecfa9466d9bfbdb47a13e16b4594ae65c5baa0670 /src/content/dependencies/generateAlbumInfoPage.js
parentfd3ba555422c7e18e478b50d04d7201379d3bbb3 (diff)
content, wiki-data: skip wiki commentary advertising dedicated page
Diffstat (limited to 'src/content/dependencies/generateAlbumInfoPage.js')
-rw-r--r--src/content/dependencies/generateAlbumInfoPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/dependencies/generateAlbumInfoPage.js b/src/content/dependencies/generateAlbumInfoPage.js
index d60e6c50..f7115ef8 100644
--- a/src/content/dependencies/generateAlbumInfoPage.js
+++ b/src/content/dependencies/generateAlbumInfoPage.js
@@ -1,4 +1,4 @@
-import {empty} from '#sugar';
+import {albumHasSubstantialCommentaryPage} from '#wiki-data';
 
 export default {
   relations: (relation, album) => ({
@@ -43,7 +43,7 @@ export default {
         : null),
 
     commentaryLink:
-      (album.tracks.some(track => !empty(track.commentary))
+      (albumHasSubstantialCommentaryPage(album)
         ? relation('linkAlbumCommentary', album)
         : null),