dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 0677dced11d05a3b0be18f55260f8b7712a0adf9
parent e2b1fcdea0a946f3025f21162ce20f0d21185431
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat, 28 Jan 2023 01:39:03 -0800

cleanup

Diffstat:
Mpkg/web/handlers/api/v1/slashInterceptor.go | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pkg/web/handlers/api/v1/slashInterceptor.go b/pkg/web/handlers/api/v1/slashInterceptor.go @@ -973,7 +973,6 @@ func handlePm0(c *Command, msg string) (handled bool) { if b, _ := clearsign.Decode(by); b != nil { if p, err := packet.Read(b.ArmoredSignature.Body); err == nil { if sig, ok := p.(*packet.Signature); ok { - fp := utils.FormatPgPFingerprint(sig.IssuerFingerprint) zero := c.getZeroUser() msg := fmt.Sprintf("<br />"+ "<table %s>"+ @@ -986,7 +985,7 @@ func handlePm0(c *Command, msg string) (handled bool) { c.upload.OrigFileName, humanize.Bytes(uint64(c.upload.FileSize)), sig.CreationTime.Format(time.RFC1123), - fp, + utils.FormatPgPFingerprint(sig.IssuerFingerprint), utils.Ternary(sig.SignerUserId != nil, *sig.SignerUserId, "n/a")) c.zeroMsg(msg) c.err = ErrRedirect