mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: add post featuring
This commit is contained in:
@ -128,6 +128,15 @@ class Post extends events.EventTarget {
|
||||
});
|
||||
}
|
||||
|
||||
feature() {
|
||||
return api.post('/featured-post', {id: this._id})
|
||||
.then(response => {
|
||||
return Promise.resolve();
|
||||
}, response => {
|
||||
return Promise.reject(response.description);
|
||||
});
|
||||
}
|
||||
|
||||
setScore(score) {
|
||||
return api.put('/post/' + this._id + '/score', {score: score})
|
||||
.then(response => {
|
||||
|
Reference in New Issue
Block a user