File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/webserver/database/sqlpage_functions Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ SELECT title,
12
12
icon,
13
13
sqlpage .link (
14
14
COALESCE(external_url, ' ' ),
15
- ifnull( external_url, json_object(' post' , title))
15
+ CASE WHEN external_url IS NULL THEN json_object(' post' , title) ELSE NULL END
16
16
) AS link
17
17
FROM blog_posts
18
18
ORDER BY created_at DESC ;
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ async fn link<'a>(
206
206
if let Some ( parameters) = parameters {
207
207
url. push ( '?' ) ;
208
208
let encoded = serde_json:: from_str :: < URLParameters > ( & parameters) . with_context ( || {
209
- format ! ( "link: invalid URL parameters: not a valid json object: {parameters}" )
209
+ format ! ( "link: invalid URL parameters: not a valid json object:\n {parameters}" )
210
210
} ) ?;
211
211
url. push_str ( encoded. get ( ) ) ;
212
212
}
You can’t perform that action at this time.
0 commit comments