Merge pull request #634 from mastodon/fix/auto-complete

Fix hashtag auto complete issue
This commit is contained in:
CMK 2022-11-19 01:01:27 +08:00 committed by GitHub
commit 73f7814e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -627,10 +627,10 @@ extension ComposeContentViewController: ComposeContentViewModelDelegate {
let _replacedText: String? = {
var text: String
switch item {
case .hashtag(let hashtag):
text = "#" + hashtag.name
case .hashtagV1(let hashtagName):
text = "#" + hashtagName
case .hashtag, .hashtagV1:
// do no fill the hashtag
// allow user delete suffix and post they want
return nil
case .account(let account):
text = "@" + account.acct
case .emoji(let emoji):