remove AiSummarized attribute from article view model
This commit is contained in:
@@ -9,9 +9,6 @@
|
||||
<p class="pb-2">
|
||||
<span class="badge badge-outline">{{ .ShortSource }}</span>
|
||||
<span class="badge badge-outline">{{ .PublishDate }}</span>
|
||||
{{if .AiSummarized}}
|
||||
<span class="badge badge-outline">ai summary</span>
|
||||
{{end}}
|
||||
</p>
|
||||
<p class="card-text">{{ .Summary }}</p>
|
||||
<div class="flex flex-row-reverse">
|
||||
|
||||
@@ -31,7 +31,6 @@ type ArticleViewModel struct {
|
||||
PublishDate string
|
||||
ShortSource string
|
||||
Summary string
|
||||
AiSummarized bool
|
||||
}
|
||||
|
||||
type ArticlePageViewModel struct {
|
||||
|
||||
@@ -48,9 +48,6 @@ func (m *ArticleViewModelRepository) All(limit int, offset int) ([]*model.Articl
|
||||
a.ShortSource = ""
|
||||
}
|
||||
|
||||
// ai summary always false
|
||||
a.AiSummarized = false
|
||||
|
||||
articleVMs = append(articleVMs, &a)
|
||||
}
|
||||
|
||||
@@ -101,9 +98,6 @@ func (m *ArticleViewModelRepository) Search(query string) ([]*model.ArticleViewM
|
||||
a.ShortSource = ""
|
||||
}
|
||||
|
||||
// ai summary always false
|
||||
a.AiSummarized = false
|
||||
|
||||
articleVMs = append(articleVMs, a)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user