Rename ensure presence menu copy to Rebroadcast

This commit is contained in:
thePR0M3TH3AN committed 2025-10-09 09:07:06 -04:00
1 parent d6fd0fd8e9
commit 87d0caed5b
5 files changed
+9 -10

No files matched your search

+1 -1
View File
@@ -220,7 +220,7 @@
data-action="ensure-presence"
data-context="modal"
>
Ensure presence (re-publish original)
Rebroadcast
</button>
<div class="my-1 border-t border-gray-700 opacity-70"></div>
<button
+1 -2
View File
@@ -240,8 +240,7 @@ export const VIEW_COUNT_BACKFILL_MAX_DAYS = 90;
export const VIEW_COUNT_CACHE_TTL_MS = 5 * 60 * 1000;
/**
* Cooldown window (in seconds) between manual "Ensure presence" rebroadcast
* attempts.
* Cooldown window (in seconds) between manual "Rebroadcast" attempts.
*
* Rebroadcasting is an escape hatch for creators to nudge stale relays. A
* short cooldown keeps this safeguard from turning into an accidental DDoS.
+1 -1
View File
@@ -62,7 +62,7 @@ const { video, rawEvent } = await nostrClient.getEventById(eventId, {
In DevTools the active client lives at `window.bitvidApp?.nostrClient`.
Use the `rawEvent` blob when implementing “Ensure presence” style flows so the
Use the `rawEvent` blob when implementing “Rebroadcast” style flows so the
client can republish exactly what was signed, including the original
`sig`. Republishers should prefer `rawEvent.sig` over re-signing unless the
payload actually changes; this avoids accidental drift in dedupe tags or
+5 -5
View File
@@ -5489,8 +5489,8 @@ class Application {
const remainingSeconds = Math.ceil(remainingMs / 1000);
const message =
remainingSeconds > 0
? `Ensure presence is cooling down. Try again in ${remainingSeconds}s.`
: "Ensure presence is cooling down. Try again soon.";
? `Rebroadcast is cooling down. Try again in ${remainingSeconds}s.`
: "Rebroadcast is cooling down. Try again soon.";
this.showStatus(message);
if (typeof window !== "undefined" && typeof window.setTimeout === "function") {
window.setTimeout(() => {
@@ -5513,7 +5513,7 @@ class Application {
this.showError("Cannot reach relays right now. Please try again later.");
break;
default:
this.showError("Failed to ensure presence. Please try again later.");
this.showError("Failed to rebroadcast. Please try again later.");
break;
}
return;
@@ -5527,9 +5527,9 @@ class Application {
this.showSuccess("Rebroadcast requested across relays.");
} catch (error) {
if (isDevMode) {
console.warn("[app] Ensure presence action failed:", error);
console.warn("[app] Rebroadcast action failed:", error);
}
this.showError("Failed to ensure presence. Please try again later.");
this.showError("Failed to rebroadcast. Please try again later.");
}
}
+1 -1
View File
@@ -803,7 +803,7 @@ export class VideoCard {
};
addActionButton(
"Ensure presence (re-publish original)",
"Rebroadcast",
"ensure-presence",
ensureDataset,
["text-gray-100", "hover:bg-gray-700"],