Skip to content

Commit 3fdf367

Browse files
fix: show favicons
Signed-off-by: Henry Gressmann <[email protected]>
1 parent 34001f7 commit 3fdf367

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/utils/seed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rand::Rng;
55
use crate::app::models::Event;
66

77
const PATHS: &[&str] = &["/", "/about", "/contact", "/pricing", "/blog", "/login", "/signup"];
8-
const REFERRERS: &[&str] = &["", "google.com", "twitter.com", "liwan.dev", "example.com"];
8+
const REFERRERS: &[&str] = &["", "google.com", "twitter.com", "liwan.dev", "example.com", "henrygressmann.de"];
99
const PLATFORMS: &[&str] = &["", "Windows", "macOS", "Linux", "Android", "iOS"];
1010
const BROWSERS: &[&str] = &["", "Chrome", "Firefox", "Safari", "Edge", "Opera"];
1111
const CITIES: &[(&str, &str)] = &[

src/web/routes/auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl AuthApi {
100100
session_id: Option<SessionId>,
101101
) -> ApiResult<EmptyResponse> {
102102
if let Some(session_id) = session_id {
103-
app.sessions.delete(&session_id.0).http_status(StatusCode::INTERNAL_SERVER_ERROR)?;
103+
let _ = app.sessions.delete(&session_id.0);
104104
}
105105
let mut public_cookie = PUBLIC_COOKIE.clone();
106106
let mut session_cookie = SESSION_COOKIE.clone();

web/src/components/icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const ReferrerIcon = ({ referrer, icon, ...props }: { referrer: string; i
8989
return <SearchIcon {...props} />;
9090
}
9191

92-
<Favicon {...props} fqdn={referrer} />;
92+
return <Favicon {...props} fqdn={referrer} />;
9393
};
9494

9595
export const Favicon = ({

0 commit comments

Comments
 (0)