fix feed
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 19s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 19s
This commit is contained in:
parent
6d05fa12f8
commit
e5ec78f64a
@ -570,10 +570,11 @@ pub fn c_bot_feed(c: &Context) {
|
||||
feed = c.string_flag("feed").unwrap();
|
||||
}
|
||||
let h = async {
|
||||
let mut notify = feed_get::get_request(feed).await;
|
||||
let notify = feed_get::get_request(feed).await;
|
||||
if notify == "err" {
|
||||
refresh(c);
|
||||
notify = feed_get::get_request("at://did:plc:4hqjfn7m6n5hno3doamuhgef/app.bsky.feed.generator/cmd".to_string()).await;
|
||||
return;
|
||||
//refresh(c);
|
||||
//notify = feed_get::get_request("at://did:plc:4hqjfn7m6n5hno3doamuhgef/app.bsky.feed.generator/cmd".to_string()).await;
|
||||
}
|
||||
let timeline: Timeline = serde_json::from_str(¬ify).unwrap();
|
||||
let n = timeline.feed;
|
||||
|
Loading…
Reference in New Issue
Block a user