You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Coma Grayce a0c9dcb5fd
Add submodules.
2 days ago
.github Add submodules. 2 days ago
ansible Version 0.9.0 3 days ago
api_tests Explicit error http status codes (#1362) 6 days ago
config Change references of dev.lemmy.ml to lemmy.ml (#1281) 2 months ago
crates Merge remote-tracking branch 'upstream/main' into bump_to_v0.9.0 2 days ago
docker Version 0.9.0 3 days ago
docs@cf3236bb62 Updating docs. 2 weeks ago
lemmy_api/src Merge remote-tracking branch 'upstream/main' into bump_to_v0.9.0 2 days ago
migrations Fixing comment count necro-bump issue. 1 week ago
migrations_testing/2020-01-13-025151_create_materialized_views Isomorphic docker (#1124) 4 months ago
scripts Add compilation benchmark, move scripts into subfolder 1 week ago
src A few API v2 changes based on nutomic's suggestions. 1 week ago
tests Fix integration tests (except one) 3 weeks ago
.dockerignore Trying out cargo chef and a travis docker image cache. (#1238) 2 months ago
.drone.yml Docker manifest arm amd64 deploy (#1367) 3 days ago
.gitignore Merge remote-tracking branch 'upstream/main' into bump_to_v0.9.0 2 days ago
.gitmodules Deletion on fetch (#1345) 2 weeks ago
.rustfmt.toml Isomorphic docker (#1124) 4 months ago
CONTRIBUTING.md Change references of dev.lemmy.ml to lemmy.ml (#1281) 2 months ago
Cargo.lock Explicit error http status codes (#1362) 6 days ago
Cargo.toml Move most code into crates/ subfolder 1 week ago
LICENSE Initial commit 1 year ago
README.md We don't use Quay anymore. 1 month ago
RELEASES.md Fixing release docs location. 3 days ago
diesel.toml Isomorphic docker (#1124) 4 months ago

README.md

( ͡° ͜ʖ ͡°)

Lenny is a fork of a link aggregator — Lemmy. Sadly, it only exist because of disrespectful behavior of the original author.

To maintain stability, this fork has a little no changes, but:

  • the main reason, completely removed “slur filter” — the ugliest way to block words;
  • a bit cleaned up UI — removed “sponsors” page (upstreamed!) and useless right-down panel;
  • new default themes — Pleroma, based on themes of the Pleroma project;
  • allowed <sub>text</sub> and <sup>text</sup> HTML tags as ~text~ and ^text^ (upstreamed!);
  • a muffin logo (by MLP Vector Club).

The Lemmy Problem

static ref SLUR_REGEX: Regex = RegexBuilder::new(r"(fag(g|got|tard)?|maricos?|cock\s?sucker(s|ing)?|\bn(i|1)g(\b|g?(a|er)?(s|z)?)\b|dindu(s?)|mudslime?s?|kikes?|mongoloids?|towel\s*heads?|\bspi(c|k)s?\b|\bchinks?|niglets?|beaners?|\bnips?\b|\bcoons?\b|jungle\s*bunn(y|ies?)|jigg?aboo?s?|\bpakis?\b|rag\s*heads?|gooks?|cunts?|bitch(es|ing|y)?|puss(y|ies?)|twats?|feminazis?|whor(es?|ing)|\bslut(s|t?y)?|\btr(a|@)nn?(y|ies?)|ladyboy(s?)|\b(b|re|r)tard(ed)?s?)").case_insensitive(true).build().unwrap();

1c0cc78f3f

We are never going to remove the slur filter completely (or add an option to that effect), because we dont want to make it easy for right-wingers to use Lemmy. We can talk about removing or changing specific words, but in general I dont think there is anything wrong with writing “b*tch” or something like that.

https://github.com/LemmyNet/lemmy/pull/816#issuecomment-644694838

I’ll have to think about this. Hard-coding it means I don’t have to do a database migration every time someone comes up with a new slur. And putting it in a DB table means someone could very easily remove it by deleting every row of that table, which isn’t good. I want to make it very difficult for racist trolls to use the most updated version of Lemmy.

https://github.com/LemmyNet/lemmy/issues/622#issuecomment-608707278

This is bullshit.

Development

For development environment you should have installed Rust toolchain and Node.js.

Backend

pacman -S rustup nodejs yarn npm
rustup update nightly
git clone https://github.com/innereq/lenny && cd lenny
cargo build

To build a production container you could use Podman or Docker.

podman build -t lenny -f ./docker/prod/Dockerfile .

Frontend

Frontend now is a separated standalone project.

git clone https://github.com/innereq/lenny-ui && cd lenny-ui
yarn
yarn build

To build a production container you could use Podman or Docker.

podman build -t lenny-ui .

Deploying

You can use our prebuilt container or build your own. Remember to choose a tag.

podman pull podman pull ghcr.io/innereq/containers/lenny
podman pull podman pull ghcr.io/innereq/containers/lenny-ui