Dev <p>Discussing everything related to the development of freedit.</p> http://127.0.0.1:3001/inn/1 2023-03-27T15:00:15+00:00 Capacity to change the username and the risk of usurpation root 2023-03-27 2023-03-27 45 <p>Hi, I’m testing your forum and I’m very happy with it. It’s full of good ideas and nice features.</p> <p>But…</p> <p>It’s possible to change the username and use the same one as an other user! I thought, yeah, it’s a cool feature to troll, then I thougt of the case of two users with the same username and the same weak password, so I tried.</p> <p>You log in with the last user (highest id) and if you change the username again, you can’t log in with the first username anymore</p> <pre style="background-color:#ffffff;"> <span style="color:#0086b3;">400</span><span style="color:#323232;"> Bad Request </span><span style="color:#323232;"> </span><span style="color:#323232;">Error: wrong password </span></pre> <p>I think it is a major bug.</p> <p>I don’t know Rust, at all, sorry, I can’t help you.</p> Unwanted redirection to https root 2023-03-28 2023-03-28 47 <p>Hi, an other bug or something I don’t understand…</p> <p>On a hidden service (Tor) I have a lot of redirections to https, especially with “Solo” (why?) and sometimes with avatars or pictures. I can’t use Solo at all because of that. The other things work pretty well.</p> <p>The config is simple, freedit and tor share the same local address and port. I also tried with Nginx reverse proxy with url rewrite, still the redirections to https. Used locally (without the hidden service), no problem. I tried silly things, like to remove tls from axum and almost everywhere, write the onion address directly in <code>main.rss</code> (because of <code>.parse().unwrap()</code> it’s impossible to write the url in config.toml) I know, silly things. I don’t know Rust and my mind is full of crap, I’m not sure if I can learn.</p> <p>Do you have an idea ?</p> What rust web framework does freedit use? Alice 2023-02-20 2023-02-20 21 <p>Is it rust native or is it developed using another web framework?</p> Can freedit recognize Youtube video links? Alice 2023-03-18 2023-03-18 40 <p>https://www.youtube.com/watch?v=4Lt8h2PQ7GA</p> <p>Use regular expressions to identify video links in content to play as iframes</p> On the optimization of time Alice 2023-03-11 2023-03-11 36 <p>On the optimization of time, in the release of the post time greater than one month in the display when using a month before the release</p> Is it possible to list the avatars of users who liked the post Alice 2023-03-02 2023-03-02 31 <p>Is it possible to list the avatars of users who liked the post to show those users who like the content</p> LaTex support without JavaScript freedit 2022-10-05 2022-10-05 2 <p>Thanks <a href="https://docs.rs/crate/latex2mathml/0.2.3">latex2mathml</a>.</p> <p>Test here!</p> <p><a href="https://osanshouo.github.io/latex2mathml-web/index.html">https://osanshouo.github.io/latex2mathml-web/index.html</a></p> <h3>Block math</h3> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mi>erf</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>=</mo><mfrac><mn>2</mn><msqrt><mi>π</mi></msqrt></mfrac><msubsup><mo>∫</mo><mn>0</mn><mi>x</mi></msubsup><msup><mi>e</mi><mrow><mo>-</mo><msup><mi>t</mi><mn>2</mn></msup></mrow></msup><mspace width="0.16666667em"/><mi>d</mi><mi>t</mi></math><pre style="background-color:#ffffff;"> <span style="color:#323232;">```math </span><span style="color:#323232;">\erf ( x ) </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> \frac{ </span><span style="color:#0086b3;">2 </span><span style="color:#323232;">}{ \sqrt{ \pi } } \int_0</span><span style="font-weight:bold;color:#a71d5d;">^</span><span style="color:#323232;">x e</span><span style="font-weight:bold;color:#a71d5d;">^</span><span style="color:#323232;">{</span><span style="font-weight:bold;color:#a71d5d;">-</span><span style="color:#323232;"> t</span><span style="font-weight:bold;color:#a71d5d;">^</span><span style="color:#0086b3;">2</span><span style="color:#323232;">} \, dt </span></pre> <h3>Inline math</h3> <p><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mi>x</mi><mo>=</mo><mfrac><mrow><mo>-</mo><mi>b</mi><mo>±</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo>-</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></math></p> <pre style="background-color:#ffffff;"> <span style="color:#323232;">`$x </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> \frac{ </span><span style="font-weight:bold;color:#a71d5d;">-</span><span style="color:#323232;"> b \pm \sqrt{ b</span><span style="font-weight:bold;color:#a71d5d;">^</span><span style="color:#0086b3;">2 </span><span style="font-weight:bold;color:#a71d5d;">- </span><span style="color:#0086b3;">4</span><span style="color:#323232;"> a c } }{ </span><span style="color:#0086b3;">2</span><span style="color:#323232;"> a }</span><span style="font-weight:bold;color:#a71d5d;">$</span><span style="color:#323232;">` </span></pre> Deleting posts and topics of other members Topatak 2022-11-22 2022-11-22 10 <p>Hi! And deleting posts and topics of other participants is not provided? </p> can user make anonymous post as option? testingnow 2022-12-25 2022-12-25 17 <p>can user make anonymous post as option?</p> Does freedit have a feature road map where we can learn more about it? Thank you. testingnow 2022-12-25 2022-12-25 16 <p>Does freedit have a feature road map where we can learn more about it? Thank you.</p> Freedit as an online rss reader freedit 2022-12-02 2022-12-02 12 <p>I never found an rss reader that are good enough for me, so I build one.</p> <p>You can see my public feeds: <a href="https://freedit.eu/feed/1">https://freedit.eu/feed/1</a>.</p> <p>Add your own feed source: <a href="https://freedit.eu/feed/add">https://freedit.eu/feed/add</a></p> <p>Add someone’s public feed source: <a href="https://freedit.eu/feed/1?filter=feed&amp;filter_value=8">https://freedit.eu/feed/1?filter=feed&amp;filter_value=8</a></p> How to remove the footer? Topatak 2022-11-21 2022-11-21 9 <p>Hello people!</p> <p>How do you get this out of the way? Or at least make it smaller in height? Looked in the css and templates, but didn’t find the right one =(</p> <p><img src="/static/upload/f24de5b817d07adcce4d.jpeg" alt="" /></p> serverbuilds.net forum database was breached because of discourse-patreon bug freedit 2022-10-28 2022-10-28 7 <p><a href="https://forums.serverbuilds.net/t/important-our-forum-database-was-breached-what-you-need-to-know/12750">https://forums.serverbuilds.net/t/important-our-forum-database-was-breached-what-you-need-to-know/12750</a></p> <p>relate issue: <a href="https://github.com/discourse/discourse-patreon/security/advisories/GHSA-fvj9-f67v-qpr4">https://github.com/discourse/discourse-patreon/security/advisories/GHSA-fvj9-f67v-qpr4</a></p> this is a new post test username 2022-10-15 2022-10-15 6 <p>hello, world. new post.</p> Do pfp's work? iamawacko 2022-10-11 2022-10-11 5 <p>I uploaded a couple of pictures, but none of them appear to have worked. I reloaded the cache, so it couldn’t be that.</p> Code highlight without JavaScript freedit 2022-10-11 2022-10-11 3 <p>Wikipedia: <a href="https://en.wikipedia.org/wiki/Fast_inverse_square_root">Fast_inverse_square_root</a></p> <p>Paper: <a href="http://www.matrix67.com/data/InvSqrt.pdf">FAST INVERSE SQUARE ROOT</a></p> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mfrac><mn>1</mn><msqrt><mi>x</mi></msqrt></mfrac></math><pre style="background-color:#ffffff;"> <span style="font-weight:bold;color:#a71d5d;">fn </span><span style="font-weight:bold;color:#795da3;">main</span><span style="color:#323232;">() { </span><span style="color:#323232;"> </span><span style="font-weight:bold;color:#a71d5d;">let</span><span style="color:#323232;"> test </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#62a35c;">inv_sqrt</span><span style="color:#323232;">(</span><span style="color:#0086b3;">0.015</span><span style="color:#323232;">); </span><span style="color:#323232;"> println!(</span><span style="color:#183691;">&quot;</span><span style="color:#0086b3;">{}</span><span style="color:#183691;">&quot;</span><span style="color:#323232;">, test); </span><span style="color:#323232;">} </span><span style="color:#323232;"> </span><span style="font-style:italic;color:#969896;">/// [Fast_inverse_square_root](https://en.wikipedia.org/wiki/Fast_inverse_square_root) </span><span style="font-weight:bold;color:#a71d5d;">fn </span><span style="font-weight:bold;color:#795da3;">inv_sqrt</span><span style="color:#323232;">(flote: </span><span style="font-weight:bold;color:#a71d5d;">f32</span><span style="color:#323232;">) -&gt; </span><span style="font-weight:bold;color:#a71d5d;">f32 </span><span style="color:#323232;">{ </span><span style="color:#323232;"> </span><span style="font-weight:bold;color:#a71d5d;">let</span><span style="color:#323232;"> i </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> flote.</span><span style="color:#62a35c;">to_bits</span><span style="color:#323232;">() </span><span style="font-weight:bold;color:#a71d5d;">&gt;&gt; </span><span style="color:#0086b3;">1</span><span style="color:#323232;">; </span><span style="color:#323232;"> </span><span style="font-weight:bold;color:#a71d5d;">let</span><span style="color:#323232;"> y </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#0086b3;">0x5f3759df </span><span style="font-weight:bold;color:#a71d5d;">-</span><span style="color:#323232;"> i; </span><span style="color:#323232;"> </span><span style="font-weight:bold;color:#a71d5d;">let mut</span><span style="color:#323232;"> y </span><span style="font-weight:bold;color:#a71d5d;">= f32</span><span style="color:#323232;">::from_bits(y.</span><span style="color:#62a35c;">to_le</span><span style="color:#323232;">()); </span><span style="color:#323232;"> y </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> y </span><span style="font-weight:bold;color:#a71d5d;">* </span><span style="color:#323232;">(</span><span style="color:#0086b3;">1.5 </span><span style="font-weight:bold;color:#a71d5d;">- </span><span style="color:#323232;">(flote </span><span style="font-weight:bold;color:#a71d5d;">* </span><span style="color:#0086b3;">0.5 </span><span style="font-weight:bold;color:#a71d5d;">*</span><span style="color:#323232;"> y </span><span style="font-weight:bold;color:#a71d5d;">*</span><span style="color:#323232;"> y)); </span><span style="color:#323232;"> y </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> y </span><span style="font-weight:bold;color:#a71d5d;">* </span><span style="color:#323232;">(</span><span style="color:#0086b3;">1.5 </span><span style="font-weight:bold;color:#a71d5d;">- </span><span style="color:#323232;">(flote </span><span style="font-weight:bold;color:#a71d5d;">* </span><span style="color:#0086b3;">0.5 </span><span style="font-weight:bold;color:#a71d5d;">*</span><span style="color:#323232;"> y </span><span style="font-weight:bold;color:#a71d5d;">*</span><span style="color:#323232;"> y)); </span><span style="font-style:italic;color:#969896;">// second iter, can be removed </span><span style="color:#323232;"> y </span><span style="color:#323232;">} </span></pre>