Skip to content

Commit 8c45f17

Browse files
committed
Fix submitting gallery posts
1 parent 8587311 commit 8c45f17

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ Unreleased
5959
- :meth:`.SubredditCollections.__call__`
6060
- :meth:`.SubredditHelper.__call__`
6161

62+
**Fixed**
63+
64+
- An issue where submitting a gallery post with websockets enabled would fail.
65+
6266
**Removed**
6367

6468
- Remove ``Reddit.random_subreddit``, ``Subreddit.random``, and

asyncpraw/models/reddit/subreddit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3511,7 +3511,7 @@ async def submit_gallery(
35113511
media_path=image["image_path"],
35123512
upload_type="gallery",
35133513
)
3514-
)[0],
3514+
),
35153515
})
35163516
response = await self._reddit.request(json=data, method="POST", path=API_PATH["submit_gallery_post"])
35173517
response = response["json"]

0 commit comments

Comments
 (0)