From c2c2146ad33b1450ea3d2eea24acaacfbb543585 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 7 Aug 2017 16:03:36 -0400 Subject: [PATCH] try fixing frontend function of model --- contrib/backends/srndv2/src/srnd/model_mem.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/backends/srndv2/src/srnd/model_mem.go b/contrib/backends/srndv2/src/srnd/model_mem.go index 3c567e6..3e9cb4b 100644 --- a/contrib/backends/srndv2/src/srnd/model_mem.go +++ b/contrib/backends/srndv2/src/srnd/model_mem.go @@ -420,11 +420,11 @@ func (self *post) MessageID() string { } func (self *post) Frontend() string { - idx := strings.LastIndex(self.MessagePath, "!") + idx := strings.LastIndex(self.MessagePath, "@") if idx == -1 { - return self.MessagePath + return "malformed" } - return self.MessagePath[idx+1:] + return self.MessagePath[idx : len(self.MessagePath)-2] } func (self *post) Board() string {