From c17529791b10ececf7574b2d41dfc8ec2019f2ff Mon Sep 17 00:00:00 2001 From: yonadavGit <92536571+yonadavGit@users.noreply.github.com> Date: Tue, 14 Jan 2025 15:06:30 +0200 Subject: [PATCH] chore(topic page): add comment to explain logic of marking source as notable --- static/js/sefaria/sefaria.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/sefaria/sefaria.js b/static/js/sefaria/sefaria.js index c8d612447f..2a103d499e 100644 --- a/static/js/sefaria/sefaria.js +++ b/static/js/sefaria/sefaria.js @@ -2700,6 +2700,7 @@ _media: {}, if (refObj.is_sheet) { continue; } let tabKey = linkTypeSlug; if (tabKey === 'about') { + // Mark as notable if it has a prompt, title, and isn't explicitly unpublished (happens when returns from LLM pod); tabKey = (refObj.descriptions?.[lang]?.title || refObj.descriptions?.[lang]?.prompt) && refObj.descriptions?.[lang]?.published != false ? 'notable-sources' : 'sources'; } if (!tabs[tabKey]) {