mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 18:21:00 +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,
|
multiple: pollVotingFrequency.canVoteMultipleTimes,
|
||||||
expires_in: pollDuration.rawValue)
|
expires_in: pollDuration.rawValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
let data = StatusData(status: statusText.string,
|
let data = StatusData(status: statusText.string,
|
||||||
visibility: visibility,
|
visibility: visibility,
|
||||||
inReplyToId: mode.replyToStatus?.id,
|
inReplyToId: mode.replyToStatus?.id,
|
||||||
|
@ -342,10 +341,8 @@ public class StatusEditorViewModel: NSObject, ObservableObject {
|
||||||
var numUrls = 0
|
var numUrls = 0
|
||||||
|
|
||||||
for range in urlRanges {
|
for range in urlRanges {
|
||||||
if range.length > maxLengthOfUrl {
|
numUrls += 1
|
||||||
numUrls += 1
|
totalUrlLength += range.length
|
||||||
totalUrlLength += range.length
|
|
||||||
}
|
|
||||||
|
|
||||||
statusText.addAttributes([.foregroundColor: UIColor(theme?.tintColor ?? .brand),
|
statusText.addAttributes([.foregroundColor: UIColor(theme?.tintColor ?? .brand),
|
||||||
.underlineStyle: NSUnderlineStyle.single.rawValue,
|
.underlineStyle: NSUnderlineStyle.single.rawValue,
|
||||||
|
|
Loading…
Reference in a new issue