1
0
Fork 0
mirror of https://github.com/LemmyNet/lemmy.git synced 2025-04-15 15:34:06 +00:00
🐀 Building a federated link aggregator in rust
Find a file
Richard Schwab a31a7d7eb6
Avoid sending BanFromSite activities twice on user purges ()
Prior to , when a user was purged, a function was called to ensure that
in addtition to the site ban, purges of remote users would result in
individual community bans for each local local community being federated out,
as this was an intermediate solution to address the lack of federated content
removal otherwise.

As proper handling of banned users was implemented in that PR, the logic for
federating out community bans was changed to federate directly as a site ban.
This logic already existed in the user purge function, resulting in
duplication.

The first instance of the ban is kept rather than the second one to ensure
that federation happens even if any of the later local DB writes run into
issues, as those will be more likely to be caught by the admin performing the
purge, so they can just repeat the request to resolve that.
2025-04-11 08:46:21 -04:00
.github Direct questions to lemmy.ml/c/lemmy_support. () 2025-03-04 09:50:53 +01:00
api_tests Adding admin image deletion endpoint. () 2025-04-07 17:17:29 -04:00
config Add comment for database pool size memory size () 2025-03-14 09:53:45 -04:00
crates Avoid sending BanFromSite activities twice on user purges () 2025-04-11 08:46:21 -04:00
docker Docker: Disable debug logs and backtrace for pictrs 2025-03-31 11:06:16 +02:00
migrations Add instance setting to disable email notifications (fixes ) () 2025-04-09 10:04:41 -04:00
readmes Removing cardano, this was never used. () 2024-04-03 10:38:57 +02:00
scripts Move sql schema to separate Rust crate () 2025-04-03 19:21:27 -04:00
src Adding admin image deletion endpoint. () 2025-04-07 17:17:29 -04:00
.dockerignore Remove git-tracked paths from .dockerignore () 2025-04-03 11:14:30 +02:00
.gitattributes Added gitattributes to normalize all files to lf () 2023-06-29 10:16:11 +02:00
.gitignore Reenable API tests that were accidentally skipped () 2023-12-13 09:29:10 -05:00
.gitmodules Send out email after registration denied, email confirmed (fixes ) () 2025-04-01 10:24:05 +02:00
.rustfmt.toml Configure max comment width in clippy () 2024-05-23 08:46:26 -04:00
.woodpecker.yml Provide native binary for releases () 2025-04-08 08:47:03 -04:00
Cargo.lock Use either instead of manually implemented enums (fixes ) () 2025-04-04 05:17:44 -04:00
Cargo.toml Move sql schema to separate Rust crate () 2025-04-03 19:21:27 -04:00
cliff.toml Removing renovate from git cliff () 2024-06-21 17:38:44 -04:00
diesel.toml Move sql schema to separate Rust crate () 2025-04-03 19:21:27 -04:00
LICENSE Initial commit 2019-02-14 09:17:18 -08:00
README.md Update README.md () 2025-03-24 23:30:58 -04:00
RELEASES.md Change RELEASES.md to link to join-lemmy.org news () 2023-10-02 10:55:23 +02:00
renovate.json Update renovate config () 2024-10-11 09:30:26 +02:00
SECURITY.md Add link to githubs new issue button for security advisories. Fixes () 2023-10-25 16:50:56 +02: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.