aboutsummaryrefslogtreecommitdiff
path: root/src/components/retweet_button/retweet_button.js
diff options
context:
space:
mode:
authorFrancis Dinh <normandy@firemail.cc>2018-06-14 05:00:11 -0400
committerFrancis Dinh <normandy@firemail.cc>2018-06-14 05:00:11 -0400
commitd05fcfa1a84d8f8089e1d691e8bd3e0d0960139c (patch)
treecf7303a9cad6eedfa5321ef53d982b4f7a1c6963 /src/components/retweet_button/retweet_button.js
parentd4f5b3feec1da69b69181b0e8a471bf94e5a5e4c (diff)
Add unretweet support
Diffstat (limited to 'src/components/retweet_button/retweet_button.js')
-rw-r--r--src/components/retweet_button/retweet_button.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/retweet_button/retweet_button.js b/src/components/retweet_button/retweet_button.js
index 4a43542d..b5b6422c 100644
--- a/src/components/retweet_button/retweet_button.js
+++ b/src/components/retweet_button/retweet_button.js
@@ -9,6 +9,8 @@ const RetweetButton = {
retweet () {
if (!this.status.repeated) {
this.$store.dispatch('retweet', {id: this.status.id})
+ } else {
+ this.$store.dispatch('unretweet', {id: this.status.id})
}
this.animated = true
setTimeout(() => {