The add entry button in the toolbar wasn’t passing the selected address
to the lower layers. As result, Triton was making a network request to
create a new post without the address. In such cases, the API returns an
error, 401.
This commit ensures the address is getting passed down to the lower
layers before making the network request.
Make account name optional in API response and map nil/empty values to
"Anonymous" at the network boundary. This ensures users who haven't set
their name can remain anonymous while keeping the name non-optional in
domain and UI layers.
- Make AccountInformationResponse.Response.name optional (String?)
- Add mapping logic in AccountUpdateNetworkService to default nil/empty
names to "Anonymous"
- Preserve non-optional String type in AccountResponse and
Account models
- No changes required in UI or persistence layers
All preview images generated by the backend are JPEG format, regardless
of the original image format (e.g., foo.png -> foo.preview.jpg).
Updated the imagePreviewURL getter, its documentation, and all tests to
reflect this behavior.