aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorFChannel <>2021-08-01 18:35:00 -0700
committerFChannel <>2021-08-01 18:35:00 -0700
commit4450e8da252137b68f067dbc9cfaa5745a8804c5 (patch)
tree0759a113986b9adddbe4b1cab6e98a50cf5e13ef /client.go
parentca7a516f878bba8ab62ffda596ba603b26250917 (diff)
fix inactive instance check and archive bug
Diffstat (limited to 'client.go')
-rw-r--r--client.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/client.go b/client.go
index 5ccdade..3b7676e 100644
--- a/client.go
+++ b/client.go
@@ -1019,7 +1019,7 @@ func ShortExcerpt(post ObjectBase) string {
var returnString string
if post.Name != "" {
- returnString = post.Name + ": " + post.Content;
+ returnString = post.Name + "| " + post.Content;
} else {
returnString = post.Content;
}
@@ -1032,12 +1032,13 @@ func ShortExcerpt(post ObjectBase) string {
returnString = match[0] + "..."
}
- re = regexp.MustCompile(`(^.+:)`)
+ re = regexp.MustCompile(`(^.+\|)`)
match = re.FindStringSubmatch(returnString)
if len(match) > 0 {
returnString = strings.Replace(returnString, match[0], "<b>" + match[0] + "</b>", 1)
+ returnString = strings.Replace(returnString, "|", ":", 1)
}
return returnString