aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2022-11-17 20:16:23 +0200
committerGitHub <[email protected]>2022-11-17 20:16:23 +0200
commit8c86f62fa48773d39fa5897811cc2f248cdb30a0 (patch)
tree82266e12d1a7802bbc45051f75fe0022c9595488
parent64a38ce8ab501a50edc6cfccaf7dba95127c6910 (diff)
parent2e2366744292084ae2ceb2f00544f4f95aa4956b (diff)
downloadmastodon.py-8c86f62fa48773d39fa5897811cc2f248cdb30a0.tar.gz
Merge pull request #260 from joshms123/fix-id-unpack
Fix ID unpacking.
-rw-r--r--mastodon/Mastodon.py2
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
Powered by cgit v1.2.3 (git 2.41.0)