aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-19 00:15:54 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-19 00:15:54 +0200
commit31a00f07c19bf057bca0834f541eae581cd80a0c (patch)
treeb175f341a9d42b6bbc170116c30ef5f97ae06082 /mastodon
parente49cd0d53030085eea211eea8d840184f06f9ce0 (diff)
downloadmastodon.py-31a00f07c19bf057bca0834f541eae581cd80a0c.tar.gz
some more tests
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 493d485..f49df83 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -3934,6 +3934,8 @@ class Mastodon:
3934 Checks if id is a dict that contains id and 3934 Checks if id is a dict that contains id and
3935 returns the id inside, otherwise just returns 3935 returns the id inside, otherwise just returns
3936 the id straight. 3936 the id straight.
3937
3938 Also unpacks datetimes to snowflake IDs if requested.
3937 """ 3939 """
3938 if isinstance(id, dict) and "id" in id: 3940 if isinstance(id, dict) and "id" in id:
3939 id = id["id"] 3941 id = id["id"]
Powered by cgit v1.2.3 (git 2.41.0)