1
0

fix down feed-generator
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
syui 2024-05-18 21:16:22 +09:00
parent bf31cf2a8f
commit b540d0c007
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
3 changed files with 6 additions and 5 deletions

@ -1 +1 @@
Subproject commit 35a52142b66b8a5cff47ec1571e710ca8402af0b Subproject commit 708130762787cd1b19dd0986612d32de5347747c

View File

@ -570,10 +570,11 @@ pub fn c_bot_feed(c: &Context) {
feed = c.string_flag("feed").unwrap(); feed = c.string_flag("feed").unwrap();
} }
let h = async { let h = async {
let mut notify = feed_get::get_request(feed).await; let notify = feed_get::get_request(feed).await;
if notify == "err" { if notify == "err" {
refresh(c); return;
notify = feed_get::get_request("at://did:plc:4hqjfn7m6n5hno3doamuhgef/app.bsky.feed.generator/cmd".to_string()).await; //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(&notify).unwrap(); let timeline: Timeline = serde_json::from_str(&notify).unwrap();
let n = timeline.feed; let n = timeline.feed;

View File

@ -1,3 +1,3 @@
#!/bin/zsh #!/bin/zsh
ai l $HANDLE -p $PASSWORD -s $HOST && ai bot -a $ADMIN --manga_uri $MANGA_URI ai l $HANDLE -p $PASSWORD -s $HOST && ai bot -a $ADMIN