forge
Explore
Log in

Don't you dare go Hollow

The MB constant only exists where the server code that uses it does

Browse files at this commit

44f25201f3748825595eccc419b60998d1ad0afaAhmet Kaan GümüşParent: 5e2a21a
  • fix
    • the MB constant only exists where the server code that uses it does
Show full message
🔇 fix(settings): the MB constant only exists where the server code that uses it does
crates/izlek-web/src/settings.rsmodified+1 -0
@@ -104,6 +104,7 @@ pub struct Limits {
104 pub const WIDEST_ATTACHMENT_MB: u64 = 500;104 pub const WIDEST_ATTACHMENT_MB: u64 = 500;
105 pub const WIDEST_PHOTO_MB: u64 = 20;105 pub const WIDEST_PHOTO_MB: u64 = 20;
106 106
107+#[cfg(feature = "ssr")]
107 const MB: u64 = 1024 * 1024;108 const MB: u64 = 1024 * 1024;
108 109
109 /// One row of the member list, as an admin may see it. There is no password110 /// One row of the member list, as an admin may see it. There is no password