Even more refactoring n shit

This commit is contained in:
y a t s
2026-06-06 18:55:14 -04:00
parent 15541fb0da
commit 1e9bd059f0
4 changed files with 8 additions and 14 deletions
-7
View File
@@ -126,11 +126,6 @@ func (kf *KF) GetPost(ctx context.Context, postID uint32) (Post, error) {
return Post{}, errors.New("Failed to parse post message body.")
}
bh, err := body.Html()
if err != nil {
return Post{}, err
}
author, err := parsePostAuthor(article)
if err != nil {
return Post{}, err
@@ -138,8 +133,6 @@ func (kf *KF) GetPost(ctx context.Context, postID uint32) (Post, error) {
post := Post{
Author: author,
Text: bytes.TrimSpace([]byte(body.Text())),
HTML: bytes.TrimSpace([]byte(bh)),
article: article,
body: body,