diff options
author | Josh S <[email protected]> | 2022-11-16 08:44:16 +0000 |
---|---|---|
committer | Josh S <[email protected]> | 2022-11-16 08:44:16 +0000 |
commit | 2e2366744292084ae2ceb2f00544f4f95aa4956b (patch) | |
tree | 82266e12d1a7802bbc45051f75fe0022c9595488 | |
parent | 64a38ce8ab501a50edc6cfccaf7dba95127c6910 (diff) | |
download | mastodon.py-2e2366744292084ae2ceb2f00544f4f95aa4956b.tar.gz |
Fix ID unpacking.
-rw-r--r-- | mastodon/Mastodon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 5824dae..7b99dfd 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -3925,7 +3925,7 @@ class Mastodon: | |||
3925 | """ | 3925 | """ |
3926 | if isinstance(id, dict) and "id" in id: | 3926 | if isinstance(id, dict) and "id" in id: |
3927 | id = id["id"] | 3927 | id = id["id"] |
3928 | if dateconv and isinstance(id, datetime): | 3928 | if dateconv and isinstance(id, datetime.datetime): |
3929 | id = (int(id) << 16) * 1000 | 3929 | id = (int(id) << 16) * 1000 |
3930 | return id | 3930 | return id |
3931 | 3931 | ||