Skip to content

V0.1.5#37

Merged
csd113 merged 24 commits into
mainfrom
v0.1.5
May 24, 2026
Merged

V0.1.5#37
csd113 merged 24 commits into
mainfrom
v0.1.5

Conversation

@csd113

@csd113 csd113 commented May 24, 2026

Copy link
Copy Markdown
Owner

No description provided.

csd113 added 24 commits May 21, 2026 16:20
Compress eligible text responses when clients explicitly accept gzip, while leaving favicon and uploaded media responses uncompressed.

Handle HEAD requests without response bodies and add coverage for gzip negotiation, skipped binary assets, and content-length behavior.
Add contextual placeholder text to post, reply, and quote composer textareas while preserving existing form fields and limits.

Align sticky desktop rails to shared header and shell spacing tokens so side panels and the Home card start at the same vertical position.
Show a noscript status banner and mark the document when JS runs (document.documentElement.classList.add("js-enabled")). Adjust post/notification card markup and styles for progressive enhancement: keep data-card-href on cards, add an explicit permalink anchor for no-JS navigation, remove tabindex on non-JS notification rows, and scope hover/cursor/focus behaviors to .js-enabled. Hide the password-toggle by default and reveal it only when JS is enabled. Update related CSS and client script and adjust tests to reflect the new no-JS fallbacks and JS-enabled behaviors.
Add aggregated admin-only user investigation details, name and post-content search semantics, escaped match previews, empty states, and focused Rust coverage for admin user search behavior.
Store the bootstrapped Arti client in an Arc before placing it in TorRuntime so the runtime retains shared ownership alongside the onion service setup.
Add registration_captcha_enabled settings support, admin writeback, and registration-only CAPTCHA generation and validation using the captcha crate. Keep login unchanged and preserve the disabled-by-default registration flow.

Cover config defaults, admin persistence, validation failures, single-use success, and accessible no-JS form rendering with focused Rust tests.
Introduce a site-wide NSFW blur feature: add media.nsfw_blur_enabled to config (default true) and new DB migration (v10) to add media.is_nsfw and users.nsfw_blur_enabled with safe defaults. Wire the setting throughout the codebase: parsing and deep settings UI, Settings default/validation, and serialization. Add APIs and handlers to mark media as NSFW (media::set_media_nsfw) and an admin POST route to toggle post NSFW state. Update rendering to support blurred NSFW media with accessible reveal controls, composer checkbox to mark uploads as NSFW, and per-user blur preference in CurrentUser. Include tests covering defaults, DB migration, rendering, and behavior; update .gitignore to include the new Playwright test file.
Introduce a new tor.display_onion_address setting (defaults to empty) with validation for v3 .onion addresses and no surrounding whitespace. Use this configured address as a fallback when the runtime Tor/Arti address is unavailable. Render a compact header Tor indicator showing a shortened address with a details view for the full address and a copy-to-clipboard button; include accompanying CSS/JS and unit tests. Also wire the new setting into TOML serialization/parsing, update defaults, and extend Playwright tests to verify header behavior. (Includes an update to the default favicon bytes.)
Update .gitignore to include playwright directory and specific file.
Detect YouTube links in post text and render static preview cards (thumbnail + link) server-side. Added parsing/validation helpers (youtube_preview_from_url, youtube_video_id_from_parts, etc.), rendering helpers (render_youtube_previews, render_youtube_preview_card) and a YoutubePreview struct, plus constants to limit previews per post. Updated post_card to include previews and added Uri import. Broadened Content-Security-Policy to allow thumbnails from https://i.ytimg.com and added CSS for preview styling. Included comprehensive unit tests for extraction, rendering, escaping and preview limits.
@csd113
csd113 merged commit 05a0075 into main May 24, 2026
7 checks passed
@csd113
csd113 deleted the v0.1.5 branch May 24, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant