mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-27 17:40:38 +00:00
Mastodon server replaces all URLs with a 23 character string, not just those that are longer than 23 characters
This commit is contained in:
parent
044d3b6b84
commit
abcd63a136
1 changed files with 2 additions and 5 deletions
|
@ -178,7 +178,6 @@ public class StatusEditorViewModel: NSObject, ObservableObject {
|
|||
multiple: pollVotingFrequency.canVoteMultipleTimes,
|
||||
expires_in: pollDuration.rawValue)
|
||||
}
|
||||
|
||||
let data = StatusData(status: statusText.string,
|
||||
visibility: visibility,
|
||||
inReplyToId: mode.replyToStatus?.id,
|
||||
|
@ -342,10 +341,8 @@ public class StatusEditorViewModel: NSObject, ObservableObject {
|
|||
var numUrls = 0
|
||||
|
||||
for range in urlRanges {
|
||||
if range.length > maxLengthOfUrl {
|
||||
numUrls += 1
|
||||
totalUrlLength += range.length
|
||||
}
|
||||
numUrls += 1
|
||||
totalUrlLength += range.length
|
||||
|
||||
statusText.addAttributes([.foregroundColor: UIColor(theme?.tintColor ?? .brand),
|
||||
.underlineStyle: NSUnderlineStyle.single.rawValue,
|
||||
|
|
Loading…
Reference in a new issue