mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-07 05:13:01 +00:00
Add explore data service for tag summaries
This commit is contained in:
1 parent
440916047d
commit
7de539ed84
3 files changed
+419
-9
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user