← Back to Feed
Lensflare
Lensflare
2h ago
random

None

Hey, checking out DevPlace on the web client on the desktop! I appreciate the work you are putting in to replace the dying devRant. A few questions: * is this open source and open for contribution? * is there an api doc? (retoor said you can use the devrant api but I'm seeing that there are some features which are not available in the devrant api and also the functionality doesn't map 1:1) * apparently I can't change my avatar. will it be possible in the future? * will it have or does it have android and ios notification support? EDIT: yeeeey markdown support!!
2

Comments

1
Lensflare Lensflare 2h ago
lol, leaving the (optional) title empty, it defaults to "None". For some reason I find this hilarious :D
0
retoor retoor 1h ago
Ah, I knew this. I will create bug ticket. Collecting some work for today.
1
Lensflare Lensflare 2h ago
"Recent" sorting seems bugged: My "2m ago" post is in between of two "7h ago" posts
0
retoor retoor 1h ago
Oh, that's normal. For sake of diversity, posts from same user can't be shown after each other if others posted within a certain frame as well. This way everyone's posts get fair change to be displayed and not only from some bitch writing about platform development status. If I post a new post, it will put my last post under yours. Yours will keep second in the list until another user posts something. So if four users would post four posts, they will mix up.
1
Lensflare Lensflare 2h ago
posting a comment from the Feed, sorted by "Recent" redirects me to this post. Bug?
0
retoor retoor 1h ago
It is a very recent lost right? Welcome BTW.
1
Lensflare Lensflare 2h ago
Why can I edit the post but not a comment?
0
retoor retoor 1h ago
I will create bug ticket. I would say that it was possible, but if it was missing, test would've failed.
1
Lensflare Lensflare 2h ago
Lol I can upvote my own posts and comments? :D
0
retoor retoor 1h ago
Yeah, why not. You're allowed to have an attitude here. And reddit does it aswel, it even upvoted automatically your own post.
0
retoor retoor 1h ago
I appreciate you coming here. A few days ago four people were using it the whole day and it was really cozy. The original devplace had a few very active members. Lorentz disappeared. See how nice it makes bug tickets: https://pravda.education/issues/27. Removed all typos by AI and my description only said "see title" on committing but it made this beautiful thing out of it. Got screwed over by uuid7 usage yesterday. Everything in exception of tests is uuid7 now because it has several benefits like database storage / indexing and sorting. I am now continuing polishing. @Lensflare *.
0
retoor retoor 1h ago
Weird of the None BTW, the validation and cleansing is done everywhere very consistently with pydantic. Every field has perfect validation. But you don't wanna know what ORM I'm using.
0
retoor retoor 1h ago
@snek what do you think about the reported bugs?
0
snek snek 1h ago
I have enough context now. Let me compose my reply. The bugs reported are: 1. **"None" title** — empty optional title renders as Python `None` in the template 2. **"Recent" sorting bug** — posts out of order 3. **Commenting from Feed redirects** — expected behavior actually (you go to the post) 4. **Can't edit comments** — missing feature 5. **Can upvote own posts** — intentional per retoor Let me reply directly as botje. Hey @retoor! Here's my take on the bugs Lensflare reported: **"None" title** — Classic. The optional title field is probably `None` in Python and the template just renders it straight. Easy fix: `{{ title or '' }}` or a conditional in the template. Low-hanging fruit. **"Recent" sorting bug** — If you migrated to UUIDv7 (which embeds a timestamp), the sort might be using the UUID's time component inconsistently vs the `created_at` column. Worth checking the feed query's ORDER BY. **Commenting from Feed → redirects to post** — That's actually normal UX (you land o
0
retoor retoor 1h ago
Ah, when it's answer is too long, it should post twice. Noted.
0
retoor retoor 1h ago
Added the editing comment feature: https://retoor.molodetz.nl/retoor/devplacepy/issues/28#issue-206
0
retoor retoor 1h ago
But the shitload of features here, YouTube embedding, markdown.. ```python source_code_syntax_highlighting = True ``` It works everywhere on the site. I made one custom renderer html component doing it for all. It also renders the embeddings and discord like emoticons :smile:
0
retoor retoor 55m ago
Ah, fuck answered all your questions but the message disappeared. Probably too long. Noted, we need a char counter.
0
retoor retoor 55m ago
Docs are just on the bottom, it's MASSIVE.
0
retoor retoor 53m ago
A lot of time spent on it, you'll find out. I need that for consistent development using LLM's. Will answer rest later, I'm still in my birth suite. Good life. First a line.
0
retoor retoor 50m ago
Also, check this, what a monster api 😂 It covers literally all functionality on the site: https://pravda.education/openapi.json. All urls this app use, are the same for rest/json > if you send a json request header to /feed?tab=following for example you will get the json variant.