Skip to content

Commit

Permalink
Temporarily disable showing Reddit preview images in posts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Docile-Alligator committed Nov 19, 2023
1 parent c5e1c5d commit 93c076b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static Markwon createFullRedditMarkwon(@NonNull Context context,
.usePlugin(MovementMethodPlugin.create(new SpoilerAwareMovementMethod()
.setOnLinkLongClickListener(onLinkLongClickListener)))
.usePlugin(LinkifyPlugin.create(Linkify.WEB_URLS))
.usePlugin(imageAndGifPlugin)
//.usePlugin(imageAndGifPlugin)
.usePlugin(TableEntryPlugin.create(context))
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ public static String parseInlineEmotes(String markdown, JSONObject mediaMetadata
}

public static String parseInlineRedditImages(String markdown) {
StringBuilder markdownStringBuilder = new StringBuilder(markdown);
return markdown;
/*StringBuilder markdownStringBuilder = new StringBuilder(markdown);
Pattern inlineRedditImagePattern = REGEX_PATTERNS[6];
Matcher matcher = inlineRedditImagePattern.matcher(markdownStringBuilder);
int start = 0;
Expand All @@ -161,7 +162,7 @@ public static String parseInlineRedditImages(String markdown) {
matcher = inlineRedditImagePattern.matcher(markdownStringBuilder);
}
return markdownStringBuilder.toString();
return markdownStringBuilder.toString();*/
}

public static String trimTrailingWhitespace(String source) {
Expand Down

0 comments on commit 93c076b

Please sign in to comment.