Repository navigation
Read each user's handle as the API now names it - #94
Merged
Merged
Conversation
dev-null.sh#1179 renamed `username` to `handle` in the API, with no compatibility kept: users, authors and mention positions only carry `handle` now. The app still read `username`, so every handle came back empty, the Log showed a bare "@", and opening a profile asked for `users/` and got a 404. User and Mention read `handle`, a user kept by the app is written back with it, and the response cache matches users by it. Inside the app the property stays `username`.
Member
|
Holy changesets Batman! Makes perfect sense tho. I think we should (not in this PR) refactor to DTOs for all API resources. This highlights that we're allowing the interface of the API to leak across the codebase, which isn't great (even with AI and tests we might not catch all instances of a change) |
Taldres
added a commit
to Taldres/dev-null-app
that referenced
this pull request
Oct 26, 2026
The API names each user's handle `handle` since dev-null.sh#1179, and the app reads it so since NativePHP#94. The suggestion fixtures still sent `username`.
1 task
simonhamp
pushed a commit
that referenced
this pull request
Oct 27, 2026
…74) * Suggest who to follow in the Log, as the web does on smaller screens Three people you might want to follow sit under the fifth commit, each with why they're suggested, Follow and Not interested. Devnull sends three spares, so one dismissed gives their place to the next, and the round is asked again to top the spares up. The refresh moves to the next page of the day's picks. Don't show again hides it with an Undo, and a switch in settings brings it back. Needs GET /api/v1/me/suggested-users and POST /api/v1/users/{username}/dismiss from dev-null-sh/dev-null.sh#990. * Keep who to follow only while the Log is open, as the web keeps it for the visit devnull picks afresh each day and the screen asks again anyway, so a kept page saved no request and could show yesterday's picks, or an answer that crossed a follow or a dismissal, on the next visit. Coming back to the Log asks again instead, and the response cache is as it was. * Send who to follow's test users with a handle, as the API does now The API names each user's handle `handle` since dev-null.sh#1179, and the app reads it so since #94. The suggestion fixtures still sent `username`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dev-null.sh#1179 renamed
usernametohandlein the API, with no compatibility kept: users, authors and mention positions only sendhandlenow. The app still readusername, so against production every handle comes back empty. The Log shows a bare "@" beside each name, and opening a profile asks forusers/and gets a 404.Data\UserandMentionreadhandle, a user the app keeps is written back with it, andResponseCachematches users by it. Inside the app the property staysusernamefor now, so the diff stays small. Renaming it everywhere can follow on its own.Testing
All 1255 tests pass and Pint is clean. The fixtures send
handle, as the API does.I also ran it on an iOS simulator against a local dev-null.sh on
production: the Log, opening profiles, follow and unfollow, mute and unmute, block and unblock with the Muted and blocked list, and finding someone by handle in New remote.Screenshots