mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 21:02:28 +00:00
Restore canonical watch history snapshot format
This commit is contained in:
1 parent
af7738b4d8
commit
ecd3f4026e
6 files changed
+122
-8
No files matched your search
@@ -4283,6 +4283,29 @@ class bitvidApp {
|
||||
}
|
||||
button.dataset.navBound = "true";
|
||||
button.addEventListener("click", () => {
|
||||
if (name === "history") {
|
||||
let actorCandidate;
|
||||
if (typeof this.pubkey === "string" && this.pubkey.trim()) {
|
||||
actorCandidate = this.pubkey.trim();
|
||||
} else if (
|
||||
typeof window?.app?.pubkey === "string" &&
|
||||
window.app.pubkey.trim()
|
||||
) {
|
||||
actorCandidate = window.app.pubkey.trim();
|
||||
}
|
||||
|
||||
void nostrClient
|
||||
.fetchWatchHistory(actorCandidate, { forceRefresh: true })
|
||||
.catch((error) => {
|
||||
if (isDevMode) {
|
||||
console.warn(
|
||||
"[profileModal] Failed to prefetch watch history on navigation:",
|
||||
error
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.selectProfilePane(name);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user