Add explore data service for tag summaries

This commit is contained in:
thePR0M3TH3AN committed 2026-01-22 19:20:41 -05:00
1 parent 440916047d
commit 7de539ed84
3 files changed
+419 -9

No files matched your search

+15
View File
@@ -9,6 +9,7 @@ import PlaybackService from "../services/playbackService.js";
import AuthService from "../services/authService.js";
import DiscussionCountService from "../services/discussionCountService.js";
import CommentThreadService from "../services/commentThreadService.js";
import ExploreDataService from "../services/exploreDataService.js";
import hashtagPreferences, {
HASHTAG_PREFERENCES_EVENTS,
} from "../services/hashtagPreferencesService.js";
@@ -133,6 +134,7 @@ export default class ApplicationBootstrap {
app.relayManager = relayManager;
app.activeIntervals = [];
app.watchHistoryTelemetry = null;
app.exploreDataService = null;
app.authEventUnsubscribes = [];
app.unsubscribeFromNostrService = null;
app.designSystemContext = {
@@ -291,6 +293,19 @@ export default class ApplicationBootstrap {
onViewLogged: (detail) => app.handleFeedViewTelemetry(detail),
});
app.exploreDataService =
this.services.exploreDataService ||
new ExploreDataService({
watchHistoryService,
nostrService: app.nostrService,
getActiveActor: () =>
typeof app.pubkey === "string" && app.pubkey ? app.pubkey : "",
logger: devLogger,
});
if (app.exploreDataService && typeof app.exploreDataService.initialize === "function") {
app.exploreDataService.initialize();
}
const playbackDependencies = {
torrentClient: this.services.torrentClient || torrentClient,
deriveTorrentPlaybackConfig: