Skip to content

Commit 40c2dae

Browse files
authored
Merge pull request #657 from DocNow/tweet_edit_expansions
Add additional expansions and fields for the new tweet edit related API parameters
2 parents c65ef7a + 77f0af5 commit 40c2dae

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

test_twarc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ def test_hydrate():
625625
for tweet in T.hydrate(iter(ids)):
626626
assert tweet["id_str"]
627627
count += 1
628-
assert count > 90 # may need to adjust as these might get deleted
628+
assert count > 80 # may need to adjust as these might get deleted
629629

630630

631631
@patch("twarc.client.OAuth1Session", autospec=True)

twarc/expansions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
"attachments.poll_ids",
2323
"attachments.media_keys",
2424
"geo.place_id",
25+
"edit_history_tweet_ids",
2526
]
2627

28+
2729
USER_FIELDS = [
2830
"created_at",
2931
"description",
@@ -62,6 +64,7 @@
6264
"reply_settings",
6365
"source",
6466
"withheld",
67+
"edit_controls",
6568
]
6669

6770
MEDIA_FIELDS = [

twarc/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import platform
22

3-
version = "2.11.3"
3+
version = "2.12.0"
44

55
user_agent = f"twarc/{version} ({platform.system()} {platform.machine()}) {platform.python_implementation()}/{platform.python_version()}"

0 commit comments

Comments
 (0)