wip
This commit is contained in:
@ -56,7 +56,7 @@ export default Vue.extend({
|
||||
onClick() {
|
||||
this.wait = true;
|
||||
if (this.user.is_following) {
|
||||
this.api('following/delete', {
|
||||
this.$root.$data.os.api('following/delete', {
|
||||
user_id: this.user.id
|
||||
}).then(() => {
|
||||
this.user.is_following = false;
|
||||
@ -66,7 +66,7 @@ export default Vue.extend({
|
||||
this.wait = false;
|
||||
});
|
||||
} else {
|
||||
this.api('following/create', {
|
||||
this.$root.$data.os.api('following/create', {
|
||||
user_id: this.user.id
|
||||
}).then(() => {
|
||||
this.user.is_following = true;
|
||||
|
Reference in New Issue
Block a user