wip
This commit is contained in:
@ -57,7 +57,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;
|
||||
@ -67,7 +67,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