diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java index 3572242a..81bd7f14 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java @@ -83,6 +83,8 @@ public class LinkCardStatusDisplayItem extends StatusDisplayItem{ description.setVisibility(TextUtils.isEmpty(card.description) ? View.GONE : View.VISIBLE); } String cardDomain=Uri.parse(card.url).getHost(); + if(cardDomain.startsWith("www.")) + cardDomain=cardDomain.substring(4); if(isLarge && !TextUtils.isEmpty(card.authorName)){ domain.setText(itemView.getContext().getString(R.string.article_by_author, card.authorName)+" ยท "+cardDomain); }else{