mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-01 05:47:10 +01:00
Fix parsing Community/post title with "&" characters
This commit is contained in:
parent
acd1aef851
commit
053c9e73b0
@ -174,7 +174,7 @@ public class ParsePost {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String title = post.getString("name");
|
String title = post.getString("name").replace("&", "&");
|
||||||
String permalink = post.getString("ap_id");
|
String permalink = post.getString("ap_id");
|
||||||
int score = counts.getInt("score");
|
int score = counts.getInt("score");
|
||||||
int upvotes = counts.getInt("upvotes");
|
int upvotes = counts.getInt("upvotes");
|
||||||
|
@ -34,7 +34,7 @@ public class ParseSubredditData {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
String title = community.getString(JSONUtils.TITLE_KEY);
|
String title = community.getString(JSONUtils.TITLE_KEY).replace("&", "&");
|
||||||
String bannerImageUrl = "";
|
String bannerImageUrl = "";
|
||||||
if (!community.isNull("banner")) {
|
if (!community.isNull("banner")) {
|
||||||
bannerImageUrl = community.getString("banner");
|
bannerImageUrl = community.getString("banner");
|
||||||
|
Loading…
Reference in New Issue
Block a user