mirror of
https://github.com/wassname/talk.git
synced 2026-10-01 12:42:56 +08:00
Better and more friendly API
This commit is contained in:
1 parent
6934263f71
commit
b547ad44f1
2 files changed
+26
-11
No files matched your search
@@ -34,10 +34,7 @@ class LikeButton extends Component {
|
||||
if (myLikeActionSummary) {
|
||||
deleteAction(myLikeActionSummary.current_user.id, comment.id);
|
||||
} else {
|
||||
postLike({
|
||||
item_id: comment.id,
|
||||
item_type: 'COMMENTS'
|
||||
});
|
||||
postLike();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user