🐀 Building a federated link aggregator in rust
Find a file
Dessalines a5b0475436
Fast history no background (#5873)
* Finishing up post and comment actions

* Adding community_actions.

* instance and person actions

* Fixing person_actions.

* Fixing down migrations

* Adding person_content_combined.

* Search combined.

* Aggregates tables.

* Dont rename old tables

* Fixing some constraints.

* Convert bigints to ints

* Forgot a bigint.

* Rest of i64 -> i32

* Adding actions id columns.

* Fixing connection config.

* Formatting smoosh up.sql

* Use current_date instead of now

* Adding history tables for liked_combined

* Upping wal size

* Fix clippy

* Fixing clippy.

* Fixing i64

* Getting rid of let mut conn

* Adding the history status table.

* Adding published indexes to speed up history.

* Adding comment like history scanning.

* Fixing schema options setup.

* post_read history

* person_post_aggregates / read_comments history

* post_like history

* Fixing conflicts.

* Fixing clippy.

* Use constant batch_size.

* person content combined post and comment history.

* Fixing id scanning.

* post/comment_actions -> saved_combined history

* search history

* Post and comment aggregates -> post / comment history.

* Uncommenting full history building.

* Changing DB_BATCH_SIZE to i64

* Fixing clippy.

* Fix index names.

* Fixing diff check by removing indexes.

* Adding the uplete ignore actions::id columns.

* Fixing merge imports.

* Fixing submodule update

* Try trigger disabling.

* Fix clippy

* Remove history table, do faster bulk inserts. Smoosh first.

Comments about how this fast insert is done is within smoosh comments.

* Adding some timings.

* Fast person content combined history

* Adding search_combined

* Fix person saved combined unique names

* person_liked_combined

* Remove-aggregates

* Fixing up.sql issues

* Re-building schema.rs

* Fixing down migrations.

* Removing history updating.

* Format sql.

* Move postgres logging to customPostgresql.conf

* Try using postgres 16-alpine in CI

* Speeding up add_report_count.

* speed up inbox_combined

* Speeding up remove_post_sort_type_enums

* Fixing post_sort_type

* Speeding up person votes

* Fixing wrong conn.

* Fixing broken migrations

* Remove comment.

* Make sure to re-index table after re-enabling indexes.

* Removing id columns from actions tables.

* Fixing down migrations.

* Using create table as for smoosh migration

* create_table as for person_content_combined.

* Fixing person_content_combined uniques

* create table as for search_combined

* create table as for liked_combined

* create table as for inbox_combined.

* Fixing a few score types.

* Fixing id positions.
2025-07-23 17:43:23 -04:00
.cargo Specify rust 1.81 (#5754) 2025-06-06 19:04:30 -04:00
.github Cleanup root folder of repo (#5712) 2025-05-30 04:35:43 -04:00
api_tests Notifications rewrite and post following (fixes #3069) (#5604) 2025-07-17 19:04:09 -04:00
config Add comment for database pool size memory size (#5503) 2025-03-14 09:53:45 -04:00
crates Fast history no background (#5873) 2025-07-23 17:43:23 -04:00
docker Fast history no background (#5873) 2025-07-23 17:43:23 -04:00
migrations Fast history no background (#5873) 2025-07-23 17:43:23 -04:00
readmes Add ko-fi (#5637) 2025-04-24 08:45:23 -04:00
scripts Fast history no background (#5873) 2025-07-23 17:43:23 -04:00
src Fast history no background (#5873) 2025-07-23 17:43:23 -04:00
.dockerignore Remove git-tracked paths from .dockerignore (#5590) 2025-04-03 11:14:30 +02:00
.gitattributes Added gitattributes to normalize all files to lf (#3386) 2023-06-29 10:16:11 +02:00
.gitignore Add permitted display characters check for post titles (#5692) 2025-06-10 09:42:37 -04:00
.gitmodules Send out email after registration denied, email confirmed (fixes #5547) (#5553) 2025-04-01 10:24:05 +02:00
.rustfmt.toml Configure max comment width in clippy (#4738) 2024-05-23 08:46:26 -04:00
.woodpecker.yml Fast history no background (#5873) 2025-07-23 17:43:23 -04:00
Cargo.lock Allow remote groups to follow Lemmy communities (fixes #5354) (#5864) 2025-07-22 15:37:15 -04:00
Cargo.toml Remove unused items (#5870) 2025-07-18 10:21:43 -04:00
cliff.toml Removing renovate from git cliff (#4858) 2024-06-21 17:38:44 -04:00
diesel.toml Allow running all migrations with minimal dependencies (#5841) 2025-07-11 09:36:42 +02:00
LICENSE Initial commit 2019-02-14 09:17:18 -08:00
README.md Add ko-fi (#5637) 2025-04-24 08:45:23 -04:00
renovate.json Update renovate config (#5109) 2024-10-11 09:30:26 +02:00
rust-toolchain.toml Specify rust 1.81 (#5754) 2025-06-06 19:04:30 -04:00

GitHub tag (latest SemVer) Build Status GitHub issues Docker Pulls Translation status License GitHub stars

English | Español | Русский | 汉语 | 漢語 | 日本語

Lemmy

A link aggregator and forum for the fediverse.

Join Lemmy · Documentation · Matrix Chat · Report Bug · Request Feature · Releases · Code of Conduct

About The Project

Desktop Mobile
desktop mobile

Lemmy is similar to sites like Reddit, Lobste.rs, or Hacker News: you subscribe to forums you're interested in, post links and discussions, then vote, and comment on them. Behind the scenes, it is very different; anyone can easily run a server, and all these servers are federated (think email), and connected to the same universe, called the Fediverse.

For a link aggregator, this means a user registered on one server can subscribe to forums on any other server, and can have discussions with users registered elsewhere.

It is an easily self-hostable, decentralized alternative to Reddit and other link aggregators, outside of their corporate control and meddling.

Each Lemmy server can set its own moderation policy; appointing site-wide admins, and community moderators to keep out the trolls, and foster a healthy, non-toxic environment where all can feel comfortable contributing.

Why's it called Lemmy?

Built With

Features

  • Open source, AGPL License.
  • Self hostable, easy to deploy.
  • Clean, mobile-friendly interface.
    • Only a minimum of a username and password is required to sign up!
    • User avatar support.
    • Live-updating Comment threads.
    • Full vote scores (+/-) like old Reddit.
    • Themes, including light, dark, and solarized.
    • Emojis with autocomplete support. Start typing :
    • User tagging using @, Community tagging using !.
    • Integrated image uploading in both posts and comments.
    • A post can consist of a title and any combination of self text, a URL, or nothing else.
    • Notifications, on comment replies and when you're tagged.
      • Notifications can be sent via email.
      • Private messaging support.
    • i18n / internationalization support.
    • RSS / Atom feeds for All, Subscribed, Inbox, User, and Community.
  • Cross-posting support.
    • A similar post search when creating new posts. Great for question / answer communities.
  • Moderation abilities.
    • Public Moderation Logs.
    • Can sticky posts to the top of communities.
    • Both site admins, and community moderators, who can appoint other moderators.
    • Can lock, remove, and restore posts and comments.
    • Can ban and unban users from communities and the site.
    • Can transfer site and communities to others.
  • Can fully erase your data, replacing all posts and comments.
  • NSFW post / community support.
  • High performance.
    • Server is written in rust.
    • Supports arm64 / Raspberry Pi.

Installation

Lemmy Projects

Support / Donate

Lemmy is free, open-source software, meaning no advertising, monetizing, or venture capital, ever. Your donations directly support full-time development of the project.

Lemmy is made possible by a generous grant from the NLnet foundation.

Crypto

  • bitcoin: 1Hefs7miXS5ff5Ck5xvmjKjXf5242KzRtK
  • ethereum: 0x400c96c96acbC6E7B3B43B1dc1BB446540a88A01
  • monero: 41taVyY6e1xApqKyMVDRVxJ76sPkfZhALLTjRvVKpaAh2pBd4wv9RgYj1tSPrx8wc6iE1uWUfjtQdTmTy2FGMeChGVKPQuV

Contributing

Read the following documentation to setup the development environment and start coding:

When working on an issue or pull request, you can comment with any questions you may have so that maintainers can answer them. You can also join the Matrix Development Chat for general assistance.

Translations

Community

Code Mirrors

Credits

Logo made by Andy Cuccaro (@andycuccaro) under the CC-BY-SA 4.0 license.