Skip to content

Commit

Permalink
Update supporter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
showierdata9978 authored Aug 13, 2024
1 parent 5075332 commit fad80e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions supporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ def send_post_event(self, original_post: dict[str, Any]):

emotes = {}
for emoji in post["emoji_ids"]:
emotes[emoji] = {
"id": int(hashlib.sha1(emoji["_id"].encode()).hexdigest(), 16),
emotes[emoji["_id"]] = {
"id": emoji["_id"],
"chat_id": db.get_collection("chats").find_one({"_id": emoji["chat_id"]}, projection={"meowid": 1})["meowid"],
"name": emoji["name"],
"animated": emoji["animated"],
Expand All @@ -354,4 +354,4 @@ def send_post_event(self, original_post: dict[str, Any]):
if "nonce" in original_post:
data["nonce"] = original_post["nonce"]

self.send_event(OpCreatePost, data)
self.send_event(OpCreatePost, data)

0 comments on commit fad80e5

Please sign in to comment.