Commit Graph
389 Commits
Author SHA1 Message Date
google-labs-jules[bot] ad0a9113f6 Improve edited video indicators and preserve publish date
- Update `VideoCard.js` to display "• Edited" instead of "(edited)" for better visual consistency.
- Update `app.js` to format the modal's "Last Edited" timestamp as "Last edited: [Absolute] ([Relative])".
- Ensure `EditModal.js` correctly backfills and preserves `published_at` to prevent date resets.
- Verify edit logic with existing tests.
2026-01-12 18:13:57 +00:00
google-labs-jules[bot] 782b5fe0b7 Fix: prevent published date reset when editing videos and show edited status
Prioritize `published_at` metadata over event `created_at` timestamp.
Backfill `published_at` during edit if missing to preserve original date.
Add "(edited)" label to video cards for modified content.
Display "Last Edited: [Date]" on video player modal.
2026-01-12 15:52:24 +00:00
google-labs-jules[bot] 1d3c827f62 Fix: prevent published date reset when editing videos and show edited status
Prioritize `published_at` metadata over event `created_at` timestamp.
Backfill `published_at` during edit if missing to preserve original date.
Add "(edited)" label to video cards for modified content.
Display "Last Edited: [Date]" on video player modal.
2026-01-12 15:35:23 +00:00
google-labs-jules[bot] c1779fba78 fix(moderation): enforce mute threshold for anonymous users 2026-01-11 21:43:02 +00:00
thePR0M3TH3AN db2b08378d Add session actor hook for moderation sync 2026-01-11 08:50:22 -05:00
thePR0M3TH3AN 4a4ffa45b4 Refresh feeds on admin blacklist changes for guests 2026-01-10 20:37:11 -05:00
thePR0M3TH3AN faaad9c724 Add session actor blacklist reconciliation 2026-01-10 20:33:15 -05:00
google-labs-jules[bot] c080b83108 feat: seed anonymous session actors with baseline block list
- Added `seedLocalBaseline` to `js/userBlocks.js` to merge admin blacklist into local block list for session actors.
- Implemented `_saveLocal` and `_loadLocal` in `js/userBlocks.js` to persist local-only block lists to `localStorage`.
- Updated `loadBlocks` to prioritize local storage for session actors, bypassing relay fetching when local data exists.
- Modified `js/app.js` to call `seedLocalBaseline` with the admin blacklist during initialization if the user is anonymous.
- Ensured `UserBlockListManager` correctly resolves `localStorage` in various environments (browser/test).
- Verified changes with `tests/user-blocks-local-seed.test.mjs`.
2026-01-10 22:19:54 +00:00
google-labs-jules[bot] d92cc58fc6 Fix: Enforce trusted mutes as blocks for anonymous users
Updates `js/app.js` to:
1.  Treat Trusted Seed mutes as hard blocks (`isAuthorBlocked` returns `true`) for anonymous users ("session actors"), ensuring strict filtering.
2.  Refresh the entire video grid (`refreshAllVideoGrids`) instead of just the UI (`refreshVisibleModerationUi`) when `trusted-mutes` events arrive for anonymous users, ensuring blocked content is removed dynamically once the lists load. This fixes a race condition where content might render before the block list is fully fetched.
2026-01-10 21:54:51 +00:00
google-labs-jules[bot] dc476392b2 Fix: Ensure UI refreshes upon trusted seed updates
Subscribes `js/app.js` to `moderationService` events (`trusted-mutes`, `user-blocks`, `summary`). This ensures that asynchronous updates to trusted seed block lists (Kind 10000) trigger an immediate UI refresh, correctly applying moderation (blur/hide) even for anonymous session actors who rely on these seeds. Previously, the initial render would complete before the async lists arrived, leaving blocked content visible until a page reload.
2026-01-10 21:37:43 +00:00
google-labs-jules[bot] b9cb33e36d Fix 404 error when cancelling service worker stream
Guards the `fetch("/webtorrent/cancel/")` call in `js/app.js` with a check for `navigator.serviceWorker.controller` and adds a `try...catch` block. This prevents the application from making a network request to a virtual route that doesn't exist on the server when the Service Worker is not active or controlling the page, eliminating "404 Not Found" errors in the console during cleanup.
2026-01-06 20:04:06 +00:00
google-labs-jules[bot] e6a6ea6f78 Fix watch history hydration by preserving relay hints
Ensures that the relay hint is preserved when recording a video view, allowing the hydration logic to fetch the video details from the correct relay.
- Updated `resolveVideoPointer` in `js/utils/videoPointer.js` to accept a `relay` argument.
- Updated `playVideoByEventId`, `checkUrlParams`, and `deriveVideoPointerInfo` in `js/app.js` to pass the relay hint when resolving the video pointer.
2026-01-06 14:12:59 +00:00
google-labs-jules[bot] acd2104067 Fix(startup): Defer trusted seed bootstrapping until after Nostr init
- Moves `bootstrapTrustedSeeds` logic from `js/bootstrap.js` to a new service `js/services/trustBootstrap.js`.
- Updates `js/app.js` to explicitly await `nostrClient.init()` before calling `bootstrapTrustedSeeds()`, resolving race conditions where admin lists were fetched before the relay pool was ready.
- Ensures `waitForRelaysReady` checks for `nostrClient.pool` existence.
2026-01-05 21:12:04 +00:00
thePR0M3TH3AN 62c0c344e0 Reload modal comments on logout 2026-01-02 13:10:05 -05:00
thePR0M3TH3AN cad9db188e update 2025-11-06 16:15:14 -05:00
thePR0M3TH3AN fbc352e460 Fix fallback thumbnail asset paths 2025-11-03 19:15:44 -05:00
thePR0M3TH3AN af192952a7 Fix modal profile lightning cache updates 2025-10-27 19:30:51 -04:00
thePR0M3TH3AN 57c44e76e7 Stop retaining stale lightning address on modal profile refresh 2025-10-27 19:19:26 -04:00
thePR0M3TH3AN 3ef44a6651 Hydrate video cards with cached creator identity 2025-10-27 19:03:31 -04:00
thePR0M3TH3AN 9e8afa8f6d Improve video modal creator profile hydration 2025-10-27 18:37:59 -04:00
thePR0M3TH3AN f3f5d59a5d Fix sidebar upload button hydration 2025-10-27 16:23:49 -04:00
thePR0M3TH3AN 7985a481a4 Allow anonymous session actors when checking login state 2025-10-27 16:08:13 -04:00
thePR0M3TH3AN f6a3e8b2ae Ensure nostr session actor matches login pubkey 2025-10-27 15:56:08 -04:00
thePR0M3TH3AN f68a82f7ee Fix comment composer login check for nip07 2025-10-27 15:38:25 -04:00
thePR0M3TH3AN 3ed26f8927 Refactor moderation actions into controller 2025-10-27 14:13:05 -04:00
thePR0M3TH3AN 11479e28e2 Refactor video modal comment handling into controller 2025-10-27 13:58:55 -04:00
thePR0M3TH3AN f6a41e7220 Preserve modal infrastructure across playback cleanup 2025-10-27 13:10:18 -04:00
thePR0M3TH3AN f4819060e4 Fix VideoListView import in ApplicationBootstrap 2025-10-27 12:47:53 -04:00
thePR0M3TH3AN c04643b3f8 Merge pull request #959 from PR0M3TH3AN/codex/fix-sidebar-subscriptions-button-display
Ensure subscriptions link hydrates after sidebar load
2025-10-26 22:14:21 -04:00
thePR0M3TH3AN 642523783f Ensure subscriptions link hydrates after sidebar load 2025-10-26 22:12:52 -04:00
thePR0M3TH3AN a107bc3192 Prevent duplicate video publishes 2025-10-26 22:12:05 -04:00
thePR0M3TH3AN a9b3138608 Ensure moderation UI re-applies after grid refresh 2025-10-26 20:53:31 -04:00
thePR0M3TH3AN ec62a14928 Merge pull request #950 from PR0M3TH3AN/codex/add-logout-button-to-profile-modals
Add logout controls to profile modal saved accounts
2025-10-26 20:13:26 -04:00
thePR0M3TH3AN f80c0d0f11 Wait for login hydration when switching profiles 2025-10-26 20:12:35 -04:00
thePR0M3TH3AN 44bcf9fd2f Add logout controls to saved profiles 2025-10-26 19:57:50 -04:00
thePR0M3TH3AN bc285373d8 Merge pull request #947 from PR0M3TH3AN/codex/fix-video-ownership-verification-error
Fix edit/delete ownership checks for user videos
2025-10-26 19:51:12 -04:00
thePR0M3TH3AN 0944ecf32a Fix owner checks by reusing selected video details 2025-10-26 19:48:38 -04:00
thePR0M3TH3AN 8a43ecd73f Add direct messages pane to profile modal 2025-10-26 19:45:23 -04:00
thePR0M3TH3AN 0f39110d7e Merge pull request #942 from PR0M3TH3AN/codex/refactor-video-note-normalization-logic
Extract video note payload normalization
2025-10-26 18:23:17 -04:00
thePR0M3TH3AN 700056b5fc Extract video note payload normalization 2025-10-26 18:21:32 -04:00
thePR0M3TH3AN 410ff28b5e Ensure moderation settings follow active profile 2025-10-26 18:04:19 -04:00
thePR0M3TH3AN 2059ef87a5 Refactor UI responsibilities into controllers 2025-10-26 16:28:41 -04:00
thePR0M3TH3AN 3507b0d013 Merge pull request #934 from PR0M3TH3AN/codex/fix-video-grid-blurring-for-muted-accounts
Fix viewer mute blur handling and modal override behavior
2025-10-26 16:07:02 -04:00
thePR0M3TH3AN 9dfe7ef20e Fix viewer mute blur regression and update modal overrides 2025-10-26 16:06:40 -04:00
thePR0M3TH3AN 0ca7f5165d Merge pull request #933 from PR0M3TH3AN/codex/fix-friends-tab-to-show-nostr-friends
Fix profile modal friends tab to show Nostr contacts
2025-10-26 15:54:04 -04:00
thePR0M3TH3AN 00d9c218c3 Fix profile modal friends tab to show Nostr contacts 2025-10-26 15:53:25 -04:00
thePR0M3TH3AN 7149494b4e Normalize video mode defaults for dev builds 2025-10-26 15:44:11 -04:00
thePR0M3TH3AN f64a0c51d2 Ensure login overlay stacking and rehydrate after profile switch 2025-10-26 15:08:04 -04:00
thePR0M3TH3AN c9a8b286ea Validate subscriptions service for profile modal 2025-10-26 14:01:02 -04:00
thePR0M3TH3AN 61fe4dba1b Shorten experimental login warning toast duration 2025-10-26 12:52:00 -04:00