1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-09 06:15:49 +02:00

Make middle-click instant quote work with reply-account plugin

This commit is contained in:
chylex 2017-10-16 09:32:52 +02:00
parent 9ed8b0d904
commit 093ac1ac40
3 changed files with 12 additions and 4 deletions
Resources
Plugins/reply-account
Scripts

View File

@ -8,7 +8,7 @@ Custom reply account
chylex
[version]
1.2.3
1.2.4
[website]
https://tweetduck.chylex.com
@ -20,4 +20,4 @@ configuration.js
configuration.default.js
[requires]
1.8
1.10.3

View File

@ -6,7 +6,7 @@ enabled(){
this.lastSelectedAccount = null;
this.uiComposeTweetEvent = (e, data) => {
return if data.type !== "reply" || data.popFromInline || !("element" in data);
return if !(data.type === "reply" || (data.type === "tweet" && "quotedTweet" in data)) || data.popFromInline || !("element" in data);
var query;

View File

@ -853,7 +853,15 @@
break;
case "retweet":
tweet.quoteTo([ tweet.account.getKey() ]); // TODO fix "from" to accept reply-account plugin
TD.controller.stats.quoteTweet();
$(document).trigger("uiComposeTweet", {
type: "tweet",
from: [ tweet.account.getKey() ],
quotedTweet: tweet.getMainTweet(),
element: ele // triggers reply-account plugin
});
break;
default: