Commit 589c3509 authored by Ronny Bangsund's avatar Ronny Bangsund

Sidebar REALLY fixed.

parent 10c57b29
......@@ -116,6 +116,7 @@ func post_scrap(ctx *web.Context) {
Expiry: now + when,
}
s.Hash = s.getHash()
s.Title = s.Hash[:8] + "..."
if s.save() {
scraps[s.Hash] = s
info("Saved scrap %s.", s.Hash)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment