浏览代码

Fix Puppet.get_mxid_from_id parameter name

Closes #42
Tulir Asokan 3 年之前
父节点
当前提交
9ce149794e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mautrix_instagram/puppet.py

+ 2 - 2
mautrix_instagram/puppet.py

@@ -217,8 +217,8 @@ class Puppet(DBPuppet, BasePuppet):
         return cls.mxid_template.parse(mxid)
 
     @classmethod
-    def get_mxid_from_id(cls, twid: int) -> UserID:
-        return UserID(cls.mxid_template.format_full(twid))
+    def get_mxid_from_id(cls, pk: int) -> UserID:
+        return UserID(cls.mxid_template.format_full(pk))
 
     @classmethod
     @async_getter_lock