Lemmy Development Update 2021-01-29

@nutomic:

I made some good progress on ActivityPub compliance this week. The main task that’s left to do is correctly discovering URLs for inbox, shared_inbox etc on remote instances, which I will finish next week. Then it might actually be possible to federate with other software.

@dessalines:

Besides helping to prepare the v0.9.0 release, this week was mostly bug fixes.

  • Made sure trending shows local communities only. Added listing_type to ListCommunities endpoint, in order to filter by Local.
  • Fixed an issue with the modlog not showing moderator bans and adds.
  • Added some recurring tasks to Lemmy, including:
    • A few active user queries, showing how many users have been active on both the site, and per community, by the last day, week, month, and 6 months. This is much more useful than the subscriber count for showing how active a community is. These are re-saved every hour.
    • Any indexes which use our postgres hot_rank function seem to de-grade over time, due to me incorrectly defining it as immutable. Re-indexing periodically fixes the issue. Not having an index here isn’t an option: the indexed query is < 20ms, while the un-indexed is > 2s. I’d def like to hear some ideas on other ways to do this, because it doesn’t seem like postgres can officially handle indexing any time-based function.
    • Our activity table is a copy of all incoming activities, and is the largest table. Added a task to periodically clear out activities older than 6 months.
  • Fixed post title height being too large in lemmy-ui.
  • Added a max length to a password field.
  • Fixed some release docs locations.
Dessalines
admin
creator
41M

BTW here’s what the counts look like on the site sidebar rn:

These are also on the community sidebars too.

@nutomic
mod
admin
51M

This is definitely gonna need a rework sooner or later. 187 users online and 86 users / day seems very wrong at first glance.

Dessalines
admin
creator
41M

Online does need to be fixed, its doing it by open websocket connections… probably needs to be de-duped by IP address or something, because multiple tabs will have different websocket connections.

@nutomic
mod
admin
21M

I dont think thats gonna change the numbers by much. It makes sense that there are more people reading than people posting, but right now there is no indication that these numbers are calculated in such different ways.

Dessalines
admin
creator
3edit-21M

I spose I can link those docs we just added on those badges. edit: just made an issue for it

@nutomic
mod
admin
41M

The docs dont explain the difference between users online and users per day either, so you’d have to addthat. Plus it might be good to show a short explanation on mouse hover.

Dessalines
admin
creator
31M

Hrm… I’ll think of good lines to add. Cause it’ll need to be added to lemmy-translations.

Actually, I can’t remember a software that has proper groups so that it makes sense to federate with. Maybe Friendica/Hubzilla? Pleroma groups are in the works AFAIK.

@marmulak
21M

Cool, so we’re microblogging?

Dessalines
admin
creator
41M

I spose we’re using !lemmy@lemmy.ml as a blog of sorts, we post our weekly dev updates here.

@0x1C3B00DA
31M

Out of curiosity, when you make a text post like that, what AP object does Lemmy use? Is it an Article or does it still use Page like regular Lemmy posts?

Dessalines
admin
creator
11M

Both are Page

Future Me
1edit-21M

Then it might actually be possible to federate with other software.

I had the impression that federation with other ActivityPub software was waaay down on your to-do list. Are you saying there’s a chance that it’s implemented next week? 😲

@nutomic
mod
admin
41M

We changed some of our NLnet milestones to be able to work on this sooner, cause it doesnt make much sense to implement new federation features, when we arent even standard compliant yet.

That said, we are not gonna work on federating with Mastodon or anything like that in the near future, so for now it might be more of a theoretical possibility.

What’s the maximum length for passwords now? If I remember correctly when I signed up the number of characters was quite low IMO, I would like to be able to have 128 which is maximum number on KeePass since it’s more secure.

Dessalines
admin
creator
21M

60 is the max, its what rust-bcrypt supports.

Everything about Lemmy; bugs, gripes, praises, and advocacy.

  • 0 users online
  • 9 users / day
  • 29 users / week
  • 96 users / month
  • 164 users / 6 months
  • 552 subscribers
  • 149 Posts
  • 956 Comments
  • Discussion
  • Modlog