mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-16 19:50:53 +01:00
Merge branch 'master' into maintenance
This commit is contained in:
commit
ecf1776eb1
@ -1000,6 +1000,7 @@ class ComposeActivity : BaseActivity(), OnMenuItemClickListener, OnClickListener
|
|||||||
}
|
}
|
||||||
AccountType.MASTODON -> {
|
AccountType.MASTODON -> {
|
||||||
addMastodonMentions(status.text_unescaped, status.spans, mentions)
|
addMastodonMentions(status.text_unescaped, status.spans, mentions)
|
||||||
|
mentions.remove("${accountUser.screen_name}@${accountUser.key.host}")
|
||||||
}
|
}
|
||||||
else -> if (status.mentions.isNotNullOrEmpty()) {
|
else -> if (status.mentions.isNotNullOrEmpty()) {
|
||||||
status.mentions.filterNot {
|
status.mentions.filterNot {
|
||||||
|
@ -71,6 +71,16 @@ fun AccountDetails.getMediaSizeLimit(@MediaCategory mediaCategory: String? = nul
|
|||||||
}
|
}
|
||||||
return UpdateStatusTask.SizeLimit(imageLimit, videoLimit)
|
return UpdateStatusTask.SizeLimit(imageLimit, videoLimit)
|
||||||
}
|
}
|
||||||
|
AccountType.MASTODON -> {
|
||||||
|
val imageLimit = AccountExtras.ImageLimit().apply {
|
||||||
|
maxSizeSync = 8 * 1024 * 1024
|
||||||
|
maxSizeAsync = 8 * 1024 * 1024
|
||||||
|
maxHeight = 1280
|
||||||
|
maxWidth = 1280
|
||||||
|
}
|
||||||
|
val videoLimit = AccountExtras.VideoLimit.twitterDefault()
|
||||||
|
return UpdateStatusTask.SizeLimit(imageLimit, videoLimit)
|
||||||
|
}
|
||||||
else -> return null
|
else -> return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user