mirror of
https://gitgud.io/yats/libkiwi.git
synced 2026-06-23 11:35:31 -04:00
Even more refactoring n shit
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user