Skip to content

Keep user pages navigable when profile metadata is blocked - #5

Merged
jeffstephens merged 1 commit into
mainfrom
fix/user-profile-metadata
Nov 2, 2026
Merged

jeffstephens merged 1 commit into
mainfrom
fix/user-profile-metadata

Conversation

@jeffstephens

@jeffstephens jeffstephens commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

When Reddit blocks /user/<name>/about.json, Redlib currently substitutes an entirely empty user. This blanks the profile box and generates tab links such as /user//submitted, which are interpreted as another username and return Forbidden.

Preserve the requested username on metadata errors so overview/comments/submitted navigation and follow/filter actions stay correctly addressed. Show an explicit unavailable message and hide unknown profile details rather than presenting zero karma or an empty image. Log the metadata failure for diagnosis; history-fetch errors retain existing handling.

Add rendered-template regression tests for blocked metadata, valid tab/action URLs, and available metadata including genuine zero karma. No deployment configuration or dependencies change.

Validation: all 66 offline tests pass locally and in hosted Linux CI. Hosted formatting, Clippy with warnings denied, and complete test-suite compilation also pass.

@jeffstephens
jeffstephens merged commit 6976bb3 into main Nov 2, 2026
2 checks passed
@jeffstephens
jeffstephens deleted the fix/user-profile-metadata branch November 2, 2026 17:05
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