Skip to content

Commit

Permalink
Ignore link preview descriptions that match the title.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-signal authored and cody-signal committed Sep 4, 2020
1 parent d625740 commit bb708e0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public LinkPreview(@JsonProperty("url") @NonNull String url,
}

public @NonNull String getDescription() {
if (description.equals(title)) {
return "";
}
return description;
}

Expand Down

0 comments on commit bb708e0

Please sign in to comment.