Dev<p>Discussing everything related to the development of freedit.</p>
http://127.0.0.1:3001/inn/12023-03-27T15:00:15+00:00Capacity to change the username and the risk of usurpationroot2023-03-272023-03-2745
<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 httpsroot2023-03-282023-03-2847
<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?Alice2023-02-202023-02-2021
<p>Is it rust native or is it developed using another web framework?</p>
Can freedit recognize Youtube video links?Alice2023-03-182023-03-1840
<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 timeAlice2023-03-112023-03-1136
<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 postAlice2023-03-022023-03-0231
<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 JavaScriptfreedit2022-10-052022-10-052
<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 membersTopatak2022-11-222022-11-2210
<p>Hi! And deleting posts and topics of other participants is not provided? </p>
can user make anonymous post as option?testingnow2022-12-252022-12-2517
<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.testingnow2022-12-252022-12-2516
<p>Does freedit have a feature road map where we can learn more about it? Thank you.</p>
Freedit as an online rss readerfreedit2022-12-022022-12-0212
<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&filter_value=8">https://freedit.eu/feed/1?filter=feed&filter_value=8</a></p>
How to remove the footer?Topatak2022-11-212022-11-219
<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 bugfreedit2022-10-282022-10-287
<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 testusername2022-10-152022-10-156
<p>hello, world. new post.</p>
Do pfp's work?iamawacko2022-10-112022-10-115
<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 JavaScriptfreedit2022-10-112022-10-113
<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;">"</span><span style="color:#0086b3;">{}</span><span style="color:#183691;">"</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;">) -> </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;">>> </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>