forked from mirrors/Fedilab
Fix issue #654 - Truncated gimini links
This commit is contained in:
parent
9cefa6ab41
commit
221bf45f27
2 changed files with 7 additions and 1 deletions
|
@ -263,7 +263,7 @@ public class SpannableHelper {
|
||||||
//Truncate URL if needed
|
//Truncate URL if needed
|
||||||
//TODO: add an option to disable truncated URLs
|
//TODO: add an option to disable truncated URLs
|
||||||
String urlText = newURL;
|
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 = urlText.substring(0, 30);
|
||||||
urlText += "…";
|
urlText += "…";
|
||||||
content.replace(matchStart, matchEnd, urlText);
|
content.replace(matchStart, matchEnd, urlText);
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
Added:
|
||||||
|
- Post random quotes
|
||||||
|
|
||||||
|
Fixed:
|
||||||
|
- Behavior with cw toggle
|
||||||
|
- Truncated gimini links
|
Loading…
Reference in a new issue