Unable to load image
Reported by:

site dev help megathread

from here on out, ill post codecel questions or other shit i need help with here and give mbux rewards appropriately

subscribe to the thread if ur interested

!codecels

88
Jump in the discussion.

No email address required.

:#marseyhacker2:

Jump in the discussion.

No email address required.

How many times will schizo break the Code before we enact a final solution

Jump in the discussion.

No email address required.

>be schizocel

>decide to make a schizopost

>decide to add a ton of unnecessary formatting

>fuck up and forget a $$ somewhere

>realize it didn't do the needful

>edit the post and re-add the $$

>decide to complain to aevann without telling him about the edit

True story, happened four schizodays ago


See this post where I reproduced the bug. The $$ that was not included was the one before :marseywould: in @Sneaky's details tag.

Original post content
<details><summary>@bballbelle</summary>
$$:marseywould:$$
</details>
<details><summary>@jararaca</summary>
$$:marseywould:$$
</details>
<details><summary>@salamander</summary>
$$:marseywould:$$
</details>
<details><summary>@tejanx</summary>
$$:marseywould:$$
</details>
<details><summary>@AmbyTheGoblin</summary>
$$:marseywould:$$
</details>
<details><summary>@eleganza</summary>
$$:marseywould:$$
</details>
<details><summary>@pillowprincess</summary>
$$:marseywould:$$
</details>
<details><summary>@sodajerk </summary>
$$:marseywould:$$
</details>
<details><summary>@dramasexual</summary>
$$:marseywould:$$
</details>
<details><summary>@maggotz</summary>
$$:marseywould:$$
</details>
<details><summary>@plsnope</summary>
$$:marseywould:$$
</details>
<details><summary>@moonbearer</summary>
$$:marseywould:$$
</details>
<details><summary>@kongwrwr</summary>
$$:marseywould:$$
</details>
<details><summary>@nancy-pelosi</summary>
$$:marseywould:$$
</details>
<details><summary>@isern-i-phail</summary>
$$:marseywould:$$
</details>
<details><summary>@swampwater</summary>
$$:marseywould:$$
</details>
<details><summary>@footfucker44</summary>
$$:marseywould:$$
</details>
<details><summary>@winterwonderland</summary>
$$:marseywould:$$
</details>
<details><summary>@groyperchilla</summary>
$$:marseywould:$$
</details>
<details><summary>@sneaky</summary>
:marseywould:$$
</details>
<details><summary>@lesbianbarbie</summary>
$$:marseywould:$$
</details>
<details><summary>@llamabean</summary>
$$:marseywould:$$
</details>
<details><summary>@enoby</summary>
$$:marseywould:$$
</details>
<details><summary>@gaydinosaurtrain</summary>
$$:marseywould:$$
</details>
<details><summary>@summerland</summary>
$$:marseywould:$$
</details>
<details><summary>@phedre</summary>
$$:marseywould:$$
</details>
<details><summary>@lilmarseyontheprairie</summary>
$$:marseywould:$$
</details>

https://i.rdrama.net/images/16919708348539255.webp

https://i.rdrama.net/images/16919708344830434.webp

I don't have a fix but it seems the issue comes from the fact that post options are not regenerated after editing a post.

Here's my local db (post_options) after posting but before adding the missing $$.

https://i.rdrama.net/images/1691970834907779.webp

It did not change after I added the missing dollar signs.

Jump in the discussion.

No email address required.

:#chadthankskingcapy:

That was my first assumption and I spent an embarrassing amount of time tryna fix it but I am stupid and was also very intoxicated


:#capysneedboat2::#capyantischizo::#space:

Jump in the discussion.

No email address required.

Yeah, I don't think there was anything you could have done to fix the issue besides creating a new post.

Jump in the discussion.

No email address required.

i just removed <details> and <summary> from allowed tags

do u think this can be fixed otherwise, bitch?

Jump in the discussion.

No email address required.

Hmm, I am on a train so I don't have the code in front of me but I think it may be possible to simply ignore any post or comment options that contain <details> or <summary> tags.

This could be done in the add_option function that replaces the $$ with the html inputs or maybe earlier when extracting the options from the post or comment body.

I'll look into it tonight and see if I can find a simple solution

EDIT a more reliable solution that would work with other tags beside details and summary would be to check for unclosed tags between the $$

Jump in the discussion.

No email address required.

great idea, done king

Jump in the discussion.

No email address required.

If only you could put that energy into your relationships

Jump in the discussion.

No email address required.

why did this happen

Idk :marseyshrug: but I managed to reproduce it here and here by copying and pasting the options in edits. I don't know how to reproduce it consistently. Often when I copy and paste the options and save the edit, the $$'s remain as $$'s and don't turn into options. I think it's relevant that the options are the same (all :marseywould:). It appears that it's taking the $$'s from two different places and treating the </details><details><summary></summary>'s in between as the poll options. Then it somehow breaks the HTML and causes parts of the post to go outside the post-text container.

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.