Fix issue #654 - Truncated gimini links

This commit is contained in:
Thomas 2022-12-19 15:09:14 +01:00
parent 9cefa6ab41
commit 221bf45f27
2 changed files with 7 additions and 1 deletions

View File

@ -263,7 +263,7 @@ public class SpannableHelper {
//Truncate URL if needed
//TODO: add an option to disable truncated URLs
String urlText = newURL;
if (newURL.length() > 30 && !urlDetails.containsKey(urlText)) {
if (newURL.length() > 30 && !urlDetails.containsKey(urlText) && !urlText.startsWith("gemini")) {
urlText = urlText.substring(0, 30);
urlText += "";
content.replace(matchStart, matchEnd, urlText);

View File

@ -0,0 +1,6 @@
Added:
- Post random quotes
Fixed:
- Behavior with cw toggle
- Truncated gimini links