Merge pull request #1351 from PR0M3TH3AN/codex/update-recent-feed-filter-behavior

Remove tag preference filtering from recent feed
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-18 20:19:35 -05:00
commit 933f839ab1
1 file changed
-13
-13
View File
@@ -5300,10 +5300,6 @@ class Application {
return this.feedEngine.registerFeed("recent", {
source: createActiveNostrSource({ service: this.nostrService }),
stages: [
// TODO(tag-preferences): keep tag-preference filtering consolidated in
// createTagPreferenceFilterStage so each feed has a single source of
// truth when interest-based inclusion/ranking lands.
createTagPreferenceFilterStage(),
createBlacklistFilterStage({
shouldIncludeVideo: (video, options) =>
this.nostrService.shouldIncludeVideo(video, options),
@@ -5542,20 +5538,11 @@ class Application {
? new Set(this.blacklistedEventIds)
: new Set();
const preferenceSource =
typeof this.getHashtagPreferences === "function"
? this.getHashtagPreferences()
: {};
const { interests = [], disinterests = [] } = preferenceSource || {};
const moderationThresholds = this.getActiveModerationThresholds();
return {
blacklistedEventIds: blacklist,
isAuthorBlocked: (pubkey) => this.isAuthorBlocked(pubkey),
tagPreferences: {
interests: Array.isArray(interests) ? [...interests] : [],
disinterests: Array.isArray(disinterests) ? [...disinterests] : [],
},
moderationThresholds: moderationThresholds
? { ...moderationThresholds }
: undefined,