Bug 1275284 - Allow self-retweets. r=clokep
authoraleth <aleth@instantbird.org>
Wed, 21 Sep 2016 23:05:07 +0200
changeset 25689 cba8e63b8bd77be765549d52ef0a3b0a956b5e37
parent 25688 7b9e92b32ac49bdf34135d9078e200124cfe68f0
child 25690 d4134a1be965e2c002454d4341f2a89098c7dc43
push id1744
push useraleth@instantbird.org
push dateSun, 16 Oct 2016 20:14:08 +0000
treeherdercomm-beta@88269bbc6b03 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersclokep
bugs1275284
Bug 1275284 - Allow self-retweets. r=clokep
chat/protocols/twitter/twitter.js
--- a/chat/protocols/twitter/twitter.js
+++ b/chat/protocols/twitter/twitter.js
@@ -52,22 +52,22 @@ Tweet.prototype = {
     let actions = [];
 
     if (account.connected) {
       actions.push(
         new Action(_("action.reply"), function() {
           this.conversation.startReply(this._tweet);
         }, this)
       );
+      actions.push(
+        new Action(_("action.retweet"), function() {
+          this.conversation.reTweet(this._tweet);
+        }, this)
+      );
       if (this.incoming) {
-        actions.push(
-          new Action(_("action.retweet"), function() {
-            this.conversation.reTweet(this._tweet);
-          }, this)
-        );
         let isFriend = account._friends.has(this._tweet.user.id_str);
         let action = isFriend ? "stopFollowing" : "follow";
         let screenName = this._tweet.user.screen_name;
         actions.push(new Action(_("action." + action, screenName),
                                 function() { account[action](screenName); }));
       }
       else if (this.outgoing && !this._deleted) {
         actions.push(