diff options
| author | Zane Helton <zane99@me.com> | 2025-06-28 03:17:09 -0400 |
|---|---|---|
| committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2025-06-28 18:30:52 +1000 |
| commit | 184433b0781dbbf40c150d598336545ae5fa5720 (patch) | |
| tree | 7462d29f4e5c325c9e824b64bba6c60d0a4084fc /src/api | |
| parent | Fix various issues with embeds on message updates (diff) | |
| download | server-ts-184433b0781dbbf40c150d598336545ae5fa5720.tar.xz | |
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.
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/util/handlers/Message.ts | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts |
