2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Merge pull request from mastodon/fix_share_wrong_domain

fix: Local user's domain is shown for remote users when sharing a post
This commit is contained in:
Marcus Kida 2022-11-16 15:15:02 +01:00 committed by GitHub
commit 4d5d9477fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -84,7 +84,7 @@ extension DataSourceFacade {
self.url = url
self.metadata = LPLinkMetadata()
metadata.url = url
metadata.title = "\(status.author.displayName) (@\(status.author.username)@\(status.author.domain))"
metadata.title = "\(status.author.displayName) (@\(status.author.acctWithDomain))"
metadata.iconProvider = NSItemProvider(object: IconProvider(url: status.author.avatarImageURLWithFallback(domain: status.author.domain)))
}