Skip to content

Commit

Permalink
chore(topic page): add comment to explain logic of marking source as …
Browse files Browse the repository at this point in the history
…notable
  • Loading branch information
yonadavGit committed Jan 14, 2025
1 parent 8d09a15 commit c175297
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static/js/sefaria/sefaria.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit c175297

Please sign in to comment.