Merge pull request #605 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
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ extension DataSourceFacade {
self.url = url self.url = url
self.metadata = LPLinkMetadata() self.metadata = LPLinkMetadata()
metadata.url = url 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))) metadata.iconProvider = NSItemProvider(object: IconProvider(url: status.author.avatarImageURLWithFallback(domain: status.author.domain)))
} }