Skip to content

Commit

Permalink
Use "attachment_url" to fix tweet quoting
Browse files Browse the repository at this point in the history
Previous behaviour was that counter didn't count URL, but it was
appended during send, so you got an error about tweet length at
send time
  • Loading branch information
IBBoard authored and baedert committed Oct 3, 2016
1 parent 987c87a commit e3d717c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/async/ComposeJob.vala
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ class ComposeJob : GLib.Object {
call.add_param ("in_reply_to_status_id", this.reply_id.to_string ());
} else if (this.quoted_tweet != null) {
Cb.MiniTweet mt = quoted_tweet.retweeted_tweet ?? quoted_tweet.source_tweet;

this.text += " https://twitter.com/%s/status/%s".printf (mt.author.screen_name,
mt.id.to_string ());
var quoted_url = "https://twitter.com/%s/status/%s".printf (mt.author.screen_name,
mt.id.to_string ());
call.add_param ("attachment_url", quoted_url);
}

call.add_param ("status", this.text);
Expand Down

0 comments on commit e3d717c

Please sign in to comment.