mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
update ggemini api version
This commit is contained in:
parent
56956075b0
commit
9ff25a8087
@ -443,9 +443,9 @@ impl Page {
|
|||||||
// Format response
|
// Format response
|
||||||
let status = Status::Input;
|
let status = Status::Input;
|
||||||
let title = gformat!("Input expected");
|
let title = gformat!("Input expected");
|
||||||
let description = match response.data().value() {
|
let description = match response.data() {
|
||||||
Some(value) => value,
|
Some(data) => data.value(),
|
||||||
None => &title,
|
None => &title,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Toggle input form variant
|
// Toggle input form variant
|
||||||
@ -674,11 +674,14 @@ impl Page {
|
|||||||
meta.borrow_mut().title = Some(gformat!("Redirect"));
|
meta.borrow_mut().title = Some(gformat!("Redirect"));
|
||||||
|
|
||||||
// Build gemtext message for manual redirection @TODO use template?
|
// Build gemtext message for manual redirection @TODO use template?
|
||||||
match response.data().value() {
|
match response.data() {
|
||||||
Some(url) => {
|
Some(url) => {
|
||||||
content.to_text_gemini(
|
content.to_text_gemini(
|
||||||
&uri,
|
&uri,
|
||||||
&gformat!("# Redirect\n\nAuto-follow not implemented, click on link below to continue\n\n=> {url}")
|
&gformat!(
|
||||||
|
"# Redirect\n\nAuto-follow not implemented, click on link below to continue\n\n=> {}",
|
||||||
|
url.value()
|
||||||
|
)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user