Dimillian / Dimillian/IceCubesApp
Bug: handles displayed outside of user profiles contain WEB_DOMAIN when they should contain LOCAL_DOMAIN
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 7.1k
- Forks
- 720
- PR merge metrics
- No merged PRs in 30d
Description
Environment:
- OS: iOS v17.0 db2
- IceCubesApp version: IceCubesApp v1.6.16
Description
Outside if user profile pages, the server’s WEB_DOMAIN (address at which mastodon is hosted) is displayed in handles when it should instead display the server’s LOCAL_DOMAIN (address used as unique identifier).
Expected behavior is that with the following server settings:
LOCAL_DOMAIN=domain.tld
WEB_DOMAIN=mastodon.domain.tld
IceCubesApp should display a user’s handle as @handle@domain.tld. Instead, the handle is currently displayed as @handle@mastodon.domain.tld.
As far as I’ve tested, this bug is primarily aesthetic and doesn’t affect usability. Users can successfully be searched for using handles containing either LOCAL_DOMAIN or WEB_DOMAIN addresses in IceCubesApp and the default web interface, so there isn’t concern of a wrong handle causing users to not be found as a result. Handles are also properly displayed when viewing a user’s profile.
Using different users to demonstrate issue as local handles on profiles in-app display without any trailing domain, so I could not demo the issue on my own profile.
Below is the account of another user whose server is also configured with a different LOCAL_DOMAIN and WEB_DOMAIN:
Here is how the same user appears in a search:
My handle as displayed in IceCubesApp:
And how it appears on the web:
Related Issues
Official iOS and Android apps appear to have similar issues:
https://github.com/mastodon/mastodon-ios/issues/524
https://github.com/mastodon/mastodon-android/issues/66
- Search that this bugs don't already exist before creating it.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how handles are rendered in search results and other views outside user profile pages, then compare that with the profile handle rendering described in the report. Use the documented LOCAL_DOMAIN and WEB_DOMAIN example to verify the displayed handle, and consider the work done when non-profile views show @handle@domain.tld while profile views remain correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100