Start fresh when updating embeds for links
In a previous commit I was attempting to be clever by only
replacing/removing embeds if necessary. This not only made the logic
more confusing but introduced a bug that would allow for orphaned
embeds when updating the search params of a URL.

This commit will remove all embeds that have a `.url` property and start
fresh. This simplifies the code and eliminates the aforementioned bug.
1 parent f9cfb46 commit 184433b0781dbbf40c150d598336545ae5fa5720
@Zane Helton Zane Helton authored on 28 Jun 2025
Madeline committed on 28 Jun 2025
Showing 1 changed file
View
src/api/util/handlers/Message.ts