diff --git a/repositories/structs.go b/repositories/structs.go index 164d677..c00c149 100644 --- a/repositories/structs.go +++ b/repositories/structs.go @@ -19,7 +19,7 @@ type Post struct { UpdatedAt time.Time `json:"-"` } -func (p *Post) getThreadID() int { +func (p Post) GetThreadID() int { if p.IsParent { return p.ID } diff --git a/templates/components/post.html b/templates/components/post.html index 41b8781..48ba82c 100644 --- a/templates/components/post.html +++ b/templates/components/post.html @@ -5,8 +5,8 @@