Bug 1275284 - Allow self-retweets. r=clokep a=jorgk
--- 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(