mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-16 06:42:14 +00:00
default text
This commit is contained in:
1 parent
1238cd3fc6
commit
7d120dc4c8
1 file changed
+8
-2
+8
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user