mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-21 09:31:19 +02:00
Add the support of threads without replies: if we replied to ourselves, it is considered, if not, it is rejected
This commit is contained in:
@@ -320,6 +320,14 @@ pub fn run(config: Config) {
|
||||
feed.reverse();
|
||||
|
||||
for tweet in &feed {
|
||||
// determine if the tweet is part of a thread (response to self) or a standard response
|
||||
if let Some(r) = &tweet.in_reply_to_screen_name {
|
||||
if &r.to_lowercase() != &config.twitter.username.to_lowercase() {
|
||||
// we are responding not threading
|
||||
continue;
|
||||
}
|
||||
};
|
||||
|
||||
// build basic status by just yielding text and dereferencing contained urls
|
||||
let mut status = match build_basic_status(tweet) {
|
||||
Ok(t) => t,
|
||||
|
Reference in New Issue
Block a user