Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
272e73d
commit d9a1685
Showing
9 changed files
with
104 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
'use strict'; | ||
|
||
|
||
const helpers = require('./helpers'); | ||
const sockets = require('..'); | ||
const api = require('../../api'); | ||
|
||
module.exports = function (SocketPosts) { | ||
SocketPosts.bookmark = async function (socket, data) { | ||
sockets.warnDeprecated(socket, 'PUT /api/v3/posts/:pid/bookmark'); | ||
return await helpers.postCommand(socket, 'bookmark', 'bookmarked', '', data); | ||
return await api.posts.bookmark(socket, data); | ||
}; | ||
|
||
SocketPosts.unbookmark = async function (socket, data) { | ||
sockets.warnDeprecated(socket, 'DELETE /api/v3/posts/:pid/bookmark'); | ||
return await helpers.postCommand(socket, 'unbookmark', 'bookmarked', '', data); | ||
return await api.posts.unbookmark(socket, data); | ||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters