mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-05 12:22:28 +00:00
Propagate tag preferences through feed runtimes
This commit is contained in:
1 parent
d5f2539b56
commit
ad01cf852f
4 files changed
+46
-1
No files matched your search
+14
-1
@@ -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]
|
||||
: [],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user