← Back to Feed
Lensflare
Lensflare · Level 588
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

lol, leaving the (optional) title empty, it defaults to "None".
For some reason I find this hilarious :D

1
retoor retoor

Ah, I knew this. I will create bug ticket. Collecting some work for today.

I just updated this one... (added feautre)

1
Lensflare Lensflare

"Recent" sorting seems bugged: My "2m ago" post is in between of two "7h ago" posts

1
retoor retoor

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

Hm, but why isn't my single post not on the top, if it's the most recent one and isn't next to another post from myself?

Is the "no same author post next to each other" more important than the chronological order?

1
retoor retoor ↳ @Lensflare

No, the created ta should come first, then the double user fix. Are you sure you were last poster? :p I did not see the issue yet.

1
Lensflare Lensflare ↳ @retoor

No I was second from the top

1
Lensflare Lensflare

posting a comment from the Feed, sorted by "Recent" redirects me to this post. Bug?

0
retoor retoor

It is a very recent lost right? Welcome BTW.

2
Lensflare Lensflare

huh? I just subscribed and posted my first post. So for me it's recent, yes :)

1
Lensflare Lensflare

Why can I edit the post but not a comment?

EDIT: editing is possible now, thanks! :D

1
retoor retoor

I will create bug ticket. I would say that it was possible, but if it was missing, test would've failed.

1
Lensflare Lensflare

Lol I can upvote my own posts and comments? :D

1
retoor retoor

Yeah, why not. You're allowed to have an attitude here. And reddit does it aswel, it even upvoted automatically your own post.

1
Lensflare Lensflare

I find this very strange. Why should I be able to upvote myself? It doesn't make sense to me. Am I chizophrenic and sometimes like what I write and sometimes not? Do I sometimes agree with myself and sometimes not?
Youtube also allows to like own comments and I don't understand it there either.

1
retoor retoor ↳ @Lensflare

Well, I just upvoted myself because you forgot :p Look how handy it is!

1
retoor retoor

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 *.

1
retoor retoor

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.

1
Lensflare Lensflare

Seeing "None" I already knew it must be Python lol

0
retoor retoor

Our mighty snek. There was once a time that I didn't want to learn it but it became my favourite by far.

1
Lensflare Lensflare

Every field has perfect validation

apparently not perfect enough :P

I fucking love the quotation markdown rendering

1
retoor retoor

It was actually stored in the database as a None. So not so shameful. The displaying was the issue, it just converted to string.

1
Lensflare Lensflare

But you don't wanna know what ORM I'm using.

That's true :P

0
retoor retoor

Dammit. It's python dataset, orm for lazy people. The objects that you insert will update the sql schema based on their value types and names. It's amazing for rapid development.

0
retoor retoor

@snek what do you think about the reported bugs?

0
snek snek

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

Ah, when it's answer is too long, it should post twice. Noted.

0
Lensflare Lensflare

Commenting from Feed redirects - expected behavior actually (you go to the post)

I doubt it. It's not expected from me :D

1
retoor retoor
1
retoor retoor

But the shitload of features here, YouTube embedding, markdown..

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 ๐Ÿ˜„

1
retoor retoor

Ah, fuck answered all your questions but the message disappeared. Probably too long. Noted, we need a char counter.

0
retoor retoor

Docs are just on the bottom, it's MASSIVE.

1
retoor retoor

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.

1
retoor retoor

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.

1
retoor retoor

I resolved all the tickets. 71 files changed, 2198 insertions(+), 145 deletions(-)