👔 Allow post only with attachments

🐛 Fix thumbnail issue
This commit is contained in:
2024-12-08 23:51:11 +08:00
parent 08ba9ae758
commit bca0f9025c
3 changed files with 12 additions and 8 deletions

View File

@ -65,7 +65,7 @@ type Post struct {
}
type PostStoryBody struct {
Thumbnail string `json:"thumbnail"`
Thumbnail *string `json:"thumbnail"`
Title *string `json:"title"`
Content string `json:"content"`
Location *string `json:"location"`
@ -73,7 +73,7 @@ type PostStoryBody struct {
}
type PostArticleBody struct {
Thumbnail string `json:"thumbnail"`
Thumbnail *string `json:"thumbnail"`
Title string `json:"title"`
Description *string `json:"description"`
Content string `json:"content"`