From 2e2366744292084ae2ceb2f00544f4f95aa4956b Mon Sep 17 00:00:00 2001 From: Josh S Date: Wed, 16 Nov 2022 08:44:16 +0000 Subject: Fix ID unpacking. --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mastodon') 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: """ if isinstance(id, dict) and "id" in id: id = id["id"] - if dateconv and isinstance(id, datetime): + if dateconv and isinstance(id, datetime.datetime): id = (int(id) << 16) * 1000 return id -- cgit v1.2.3