reddit: get post now unescape title

This commit is contained in:
Tigor Hutasuhut 2024-04-29 09:52:30 +07:00
parent 95b1a2f393
commit 66fc1a964b

View file

@ -2,6 +2,7 @@ package reddit
import (
"fmt"
"html"
"net/url"
"path"
"path/filepath"
@ -241,7 +242,7 @@ func (post *Post) GetAuthor() string {
}
func (post *Post) GetTitle() string {
return post.Data.Title
return html.UnescapeString(post.Data.Title)
}
func (post *Post) GetAuthorURL() string {