Disable shorts (#620)

* Disable shorts

* Rename setting

* changelog
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2025-05-22 22:13:44 -04:00
1 parent 6d9117a2a0
commit eb67d9e4c0
10 files changed
+200 -47

No files matched your search

@@ -101,9 +101,16 @@ function CreateChannelFeeds(authorId as string, author as string, tabs as object
return invalid
end if
disableShorts = m.preferences["content_feed.disable_shorts"]
feeds = []
for i = 0 to tabs.count() - 1
tabName = tabs[i]
if tabName = "shorts" and disableShorts
LogInfo(`Skipping "Shorts" tab based on user settings`)
continue for
end if
if m.tabs.DoesExist(tabName)
if tabsParams <> invalid and tabsParams.DoesExist(tabName)
params = tabsParams[tabName]