mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
Handle newest_cursor and oldest_cursor not sent in response
This commit is contained in:
parent
7ea2ae853a
commit
056604d9bb
@ -232,8 +232,8 @@ public final class ResponseBodyUtils {
|
|||||||
final String threadV2Id = data.getString("thread_v2_id");
|
final String threadV2Id = data.getString("thread_v2_id");
|
||||||
final String threadTitle = data.getString("thread_title");
|
final String threadTitle = data.getString("thread_title");
|
||||||
|
|
||||||
final String threadNewestCursor = data.getString("newest_cursor");
|
final String threadNewestCursor = data.optString("newest_cursor");
|
||||||
final String threadOldestCursor = data.getString("oldest_cursor");
|
final String threadOldestCursor = data.optString("oldest_cursor");
|
||||||
final String threadNextCursor = data.has("next_cursor") ? data.getString("next_cursor") : null;
|
final String threadNextCursor = data.has("next_cursor") ? data.getString("next_cursor") : null;
|
||||||
final String threadPrevCursor = data.has("prev_cursor") ? data.getString("prev_cursor") : null;
|
final String threadPrevCursor = data.has("prev_cursor") ? data.getString("prev_cursor") : null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user