Fixing default profile image
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
+2
-2
@@ -982,7 +982,7 @@ const parseDataImage = (dataUrl: string) => {
|
||||
};
|
||||
|
||||
const getDefaultBirdPhotoAttachment = () => {
|
||||
const defaultPhotoPath = path.join(process.cwd(), 'assets', 'yoda.png');
|
||||
const defaultPhotoPath = path.join(process.cwd(), 'assets', 'yoda-default.png');
|
||||
|
||||
if (!existsSync(defaultPhotoPath)) {
|
||||
console.warn(`Unable to load default bird photo from ${defaultPhotoPath}`);
|
||||
@@ -990,7 +990,7 @@ const getDefaultBirdPhotoAttachment = () => {
|
||||
}
|
||||
|
||||
return {
|
||||
filename: 'yoda.png',
|
||||
filename: 'yoda-default.png',
|
||||
path: defaultPhotoPath,
|
||||
cid: 'flockpal-default-bird-photo',
|
||||
contentDisposition: 'inline' as const,
|
||||
|
||||
Reference in New Issue
Block a user