default text

This commit is contained in:
Brandon Thomas committed 2020-09-28 06:16:12 -04:00
1 parent 1238cd3fc6
commit 7d120dc4c8
1 file changed
+8 -2
+8 -2
View File
@@ -63,7 +63,12 @@ async fn start_worker(config: common::Config, receiver: Receiver<Workload>, work
let path = PathBuf::from(movie_path.path().to_str().unwrap());
let r = respond_with_media(&config, &workload.tweet, path, "media").await;
let r = respond_with_media(
&config,
&program_args,
&workload.tweet,
path,
"deepfake media generated by vo.codes").await;
match r {
Ok(_) => info!("Responded to tweet successfully"),
@@ -74,6 +79,7 @@ async fn start_worker(config: common::Config, receiver: Receiver<Workload>, work
async fn respond_with_media(
config: &common::Config,
program_args: &ProgramArgs,
original_tweet: &Tweet,
media_path: PathBuf,
media_alt_text: &str) -> AnyhowResult<()>
@@ -85,7 +91,7 @@ async fn respond_with_media(
info!("From user id: {}", user_id);
let mut response_tweet = DraftTweet::new("")
let mut response_tweet = DraftTweet::new(program_args.tweet_text.to_string())
.in_reply_to(original_tweet.id)
.auto_populate_reply_metadata(true)
.coordinates(33.753746, -84.386330, true); // Atlanta