File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ pub struct ApiStatusTag {
3232#[ derive( Deserialize ) ]
3333pub struct ApiMediaAttachment {
3434 pub r#type : String ,
35- pub description : String ,
35+ pub description : Option < String > ,
3636 pub url : String ,
3737 pub preview_url : String ,
3838}
@@ -53,7 +53,7 @@ pub struct AkkomaImgTemplate {
5353 pub data_akkoma_src : String ,
5454 pub href : String ,
5555 pub src : String ,
56- pub alt : String ,
56+ pub alt : Option < String > ,
5757}
5858
5959impl From < & ApiAccount > for Author {
Original file line number Diff line number Diff line change 1- < a target ="_blank " href ="{{ href }} "> < img loading ="lazy " data-akkoma-src ="{{ data_akkoma_src }} " src ="{{ src }} " alt = "{{ alt }} "> </ a >
1+ < a target ="_blank " href ="{{ href }} "> < img loading ="lazy " data-akkoma-src ="{{ data_akkoma_src }} " src ="{{ src }} "{% if let Some( alt) = alt %} alt = "{{ alt }} "{% endif %} > </ a >
You can’t perform that action at this time.
0 commit comments