Bug 1275284 - Allow self-retweets. r=clokep a=jorgk
authoraleth <aleth@instantbird.org>
Wed, 21 Sep 2016 23:05:07 +0200
changeset 27603 c08bc7f8009991a4d3041f87a05b24af43d5580d
parent 27602 ba0b2f76ab2887ae561105daaefb48b5ea99986b
child 27604 91784426c81d58787b095eb3475d625a115e7955
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersclokep, jorgk
bugs1275284
Bug 1275284 - Allow self-retweets. r=clokep a=jorgk
chat/protocols/twitter/twitter.js
--- a/chat/protocols/twitter/twitter.js
+++ b/chat/protocols/twitter/twitter.js
@@ -62,22 +62,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(