]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/server/user_functions.c
Skeleton code for filters.
[citadel.git] / webcit-ng / server / user_functions.c
index 0b4548ec3e9696a1d593f0b5388ec0c2c90f6bc2..64fc9b558e5b4255c7668f89370188a26ec3bc0d 100644 (file)
@@ -1,9 +1,8 @@
 // User functions
 //
-// Copyright (c) 1996-2022 by the citadel.org team
+// Copyright (c) 1996-2023 by the citadel.org team
 //
-// This program is open source software.  Use, duplication, or
-// disclosure are subject to the GNU General Public License v3.
+// This program is open source software.  Use, duplication, or disclosure is subject to the GNU General Public License v3.
 
 #include "webcit.h"
 
@@ -37,7 +36,11 @@ void fetch_user_photo(struct http_transaction *h, struct ctdlsession *c, char *u
                return;
        }
 
-       do_404(h);
+       // The user has no avatar on file.  Redirect to a generic avatar.
+       http_redirect(h, "/ctdl/s/images/generic-user-icon-32px.png");
+
+       // Sending a 404 makes the browser request the same thing over and over again.
+       // do_404(h);
 }