Skip to content

Commit

Permalink
fix: don’t inadvertently overwrite notes
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed May 14, 2024
1 parent 20d56f4 commit 4f162d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x_notes/tweets.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def fetch_tweets() -> None:
else:
note_update["deleted"] = 1
for update_note_id in tweets_with_multi_notes.get(note["tweet_id"], [note_id]):
notes[update_note_id] = {**note, **note_update}
notes[update_note_id] = {**notes[update_note_id], **note_update}

account = await api.pool.get(environ["TW_USER"])
if locked_until := account.locks.get("TweetDetail"):
Expand Down

0 comments on commit 4f162d6

Please sign in to comment.