Skip to content

Commit

Permalink
Use correct index
Browse files Browse the repository at this point in the history
  • Loading branch information
jonapoul authored and soloturn committed Nov 4, 2023
1 parent 2e3dba7 commit 6d7503f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private void pullAttachmentUrls(JSONObject post, ArrayList<String> results) {
try {
JSONArray attachments = post.getJSONArray(KEY_ATTACHMENTS);
for (int i = 0; i < attachments.length(); i++) {
JSONObject attachment = attachments.getJSONObject(0);
JSONObject attachment = attachments.getJSONObject(i);
pullFileUrl(attachment, results);
}
} catch (JSONException e) {
Expand Down

0 comments on commit 6d7503f

Please sign in to comment.