- commit
- 78871f0b0173ad606cd970db1078060f0752107d
- parent
- 1e355f87c8906ed23c22a833155f51de9fbf5e6d
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-06-08 05:51
reset lastId on DELETE
Diffstat
| M | via.go | 1 | + |
1 files changed, 1 insertions, 0 deletions
diff --git a/via.go b/via.go
@@ -305,6 +305,7 @@ func del(w http.ResponseWriter, r *http.Request) {
305 305 defer topic.Unlock()
306 306
307 307 topic.history = make([]Msg, 0)
-1 308 topic.lastId = 0
308 309 topic.deleteHistory(r.URL.Path)
309 310 }
310 311