Propagate tag preferences through feed runtimes

This commit is contained in:
thePR0M3TH3AN committed 2025-10-25 17:38:31 -04:00
1 parent d5f2539b56
commit ad01cf852f
4 files changed
+46 -1

No files matched your search

+14 -1
View File
@@ -878,12 +878,25 @@ class SubscriptionsManager {
? Math.floor(limitCandidate)
: null;
const preferenceSource =
typeof app?.getHashtagPreferences === "function"
? app.getHashtagPreferences()
: {};
return {
subscriptionAuthors: normalizedAuthors,
authors: normalizedAuthors,
blacklistedEventIds: blacklist,
isAuthorBlocked,
limit: normalizedLimit
limit: normalizedLimit,
tagPreferences: {
interests: Array.isArray(preferenceSource?.interests)
? [...preferenceSource.interests]
: [],
disinterests: Array.isArray(preferenceSource?.disinterests)
? [...preferenceSource.disinterests]
: [],
},
};
}