diff options
author | FChannel <> | 2021-08-01 18:35:00 -0700 |
---|---|---|
committer | FChannel <> | 2021-08-01 18:35:00 -0700 |
commit | 4450e8da252137b68f067dbc9cfaa5745a8804c5 (patch) | |
tree | 0759a113986b9adddbe4b1cab6e98a50cf5e13ef /client.go | |
parent | ca7a516f878bba8ab62ffda596ba603b26250917 (diff) |
fix inactive instance check and archive bug
Diffstat (limited to 'client.go')
-rw-r--r-- | client.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |