Merge pull request #1163 from PR0M3TH3AN/unstable

Unstable
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-09 15:57:03 -05:00
commit f1efa065c3
5 files changed
+1474 -8

No files matched your search

+7 -6
View File
@@ -124,12 +124,13 @@
<h4 class="text-sm font-semibold text-text">Cloudflare R2 Credentials</h4>
<span id="storage-status" class="text-xs text-muted">Stored locally</span>
</div>
<div class="flex items-center justify-between">
<p class="text-xs text-muted">Required for direct file uploads.</p>
<a href="#view=upload-content" class="btn btn-ghost btn-xs text-accent gap-1 pl-1 pr-2">
<img src="assets/svg/upload-content-icon.svg" alt="" class="h-4 w-4" />
Learn How
</a>
<div class="mb-2">
<p class="text-xs text-muted">
Required for direct file uploads.
<a href="#view=upload-content" id="link-r2-help" class="text-accent hover:underline font-medium ml-1">
Read the setup guide.
</a>
</p>
</div>
<div class="grid gap-3 md:grid-cols-2">
+8
View File
@@ -182,6 +182,7 @@ export class UploadModal {
r2Advanced: $("#btn-r2-advanced"),
saveSettings: $("#btn-save-settings"),
browseThumbnail: $("#btn-thumbnail-file"),
r2HelpLink: $("#link-r2-help"),
};
// Status text
@@ -215,6 +216,13 @@ export class UploadModal {
await this.handleSaveSettings();
});
// Help Link
if (this.toggles.r2HelpLink) {
this.toggles.r2HelpLink.addEventListener("click", () => {
this.close();
});
}
// Automation
this.setupDescriptionMirror();
this.setupMutuallyExclusiveCheckboxes(this.toggles.nsfw, this.toggles.kids);
+18 -2
View File
@@ -687,12 +687,22 @@ async function publishView(pointerInput, createdAt) {
return viewResult;
}
const actorCandidate =
let actorCandidate =
viewResult?.event?.pubkey ||
nostrClient?.pubkey ||
nostrClient?.sessionActor?.pubkey ||
"";
const actorKey = normalizeActorKey(actorCandidate);
let actorKey = normalizeActorKey(actorCandidate);
let usedSessionFallback = false;
if (!actorKey && typeof nostrClient?.ensureSessionActor === "function") {
await nostrClient.ensureSessionActor();
const sessionActorKey = normalizeActorKey(nostrClient?.sessionActor?.pubkey);
if (sessionActorKey) {
actorKey = sessionActorKey;
actorCandidate = nostrClient?.sessionActor?.pubkey || "";
usedSessionFallback = true;
}
}
if (!actorKey) {
userLogger.warn(
"[watchHistoryService] Unable to resolve actor for watch list update.",
@@ -700,6 +710,12 @@ async function publishView(pointerInput, createdAt) {
);
return viewResult;
}
if (usedSessionFallback) {
devLogger.info(
"[watchHistoryService] Using session actor fallback for watch history update.",
{ actor: actorKey }
);
}
const queue = ensureQueue(actorKey);
if (!queue) {
+9
View File
@@ -0,0 +1,9 @@
npm error Missing script: "start"
npm error
npm error Did you mean one of these?
npm error npm star # Mark your favorite packages
npm error npm stars # View packages marked as favorites
npm error
npm error To see a list of scripts, run:
npm error npm run
npm error A complete log of this run can be found in: /home/jules/.npm/_logs/2026-01-09T18_38_57_901Z-debug-0.log
+1432
View File
File diff suppressed because it is too large. Load diff