diff --git a/core/webapi/artwork.go b/core/webapi/artwork.go
index ca94721..30cf30c 100644
--- a/core/webapi/artwork.go
+++ b/core/webapi/artwork.go
@@ -103,6 +103,8 @@ type Illust struct {
SanityLevel int `json:"sl"`
XRestrict xRestrict `json:"xRestrict"`
AiType aiType `json:"aiType"`
+ Bookmarked any `json:"bookmarkData"`
+ Liked any `json:"json:"likeData"`
User UserBrief
RecentWorks []ArtworkBrief
RelatedWorks []ArtworkBrief
diff --git a/core/webapi/newest.go b/core/webapi/newest.go
index 34f42a6..a562fd2 100644
--- a/core/webapi/newest.go
+++ b/core/webapi/newest.go
@@ -19,6 +19,7 @@ type ArtworkBrief struct {
Pages int `json:"pageCount"`
XRestrict int `json:"xRestrict"`
AiType int `json:"aiType"`
+ Bookmarked any `json:"bookmarkData"`
}
func ProxyImages(s, proxy string) string {
diff --git a/main.go b/main.go
index 4171a21..6a76ba6 100644
--- a/main.go
+++ b/main.go
@@ -141,9 +141,9 @@ func main() {
self.Get("/", pages.LoginUserPage)
self.Get("/followingWorks", pages.FollowingWorksPage)
self.Get("/bookmarks", pages.LoginBookmarkPage)
- self.Get("/addBookmark/:id", pages.AddBookmarkRoute)
- self.Get("/deleteBookmark/:id", pages.DeleteBookmarkRoute)
- self.Get("/like/:id", pages.LikeRoute)
+ self.Post("/addBookmark/:id", pages.AddBookmarkRoute)
+ self.Post("/deleteBookmark/:id", pages.DeleteBookmarkRoute)
+ self.Post("/like/:id", pages.LikeRoute)
server.Get("tags/:name", pages.TagPage)
server.Post("tags",
diff --git a/views/pages/artwork.jet.html b/views/pages/artwork.jet.html
index 586b1fa..f9451a0 100644
--- a/views/pages/artwork.jet.html
+++ b/views/pages/artwork.jet.html
@@ -54,6 +54,20 @@