You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Andrew Yoon e78ba38e94
Use URL type in most outstanding struct fields (#1468)
* Use URL type in most outstanding struct fields

This fixes all known remaining cases where url fields are stored as
plain strings, with the exception of form fields where empty strings
are used as sentinels (see `diesel_option_overwrite_to_url`).

Tested for regressions in the federated docker setup attempting to
exercise all changed fields, including through apub federation.

Fixes #1385

* Add migration to fix blank-string post.url values to be null

This also then fixes #602

* Address review feedback

- Fixed some unwraps and err message formatting
- Bumped the `url` library to 2.2.1 to fix a bug with serde error
  messages
- Add unit tests for the two diesel option override functions
- Fix migration teardown by adding a no-op

* Rename lemmy_db_queries::Url to lemmy_db_queries::DbUrl

* fix compile error

* box PostOrComment variants
3 years ago
.github Updating issue template to show lemmy-ui. 4 years ago
ansible Rewrite settings implementation. Fixes #1270 (#1433) 3 years ago
api_tests Upgrade Rust version 3 years ago
config Rewrite settings implementation. Fixes #1270 (#1433) 3 years ago
crates Use URL type in most outstanding struct fields (#1468) 3 years ago
docker Upgrade Rust version 3 years ago
migrations Use URL type in most outstanding struct fields (#1468) 3 years ago
migrations_testing/2020-01-13-025151_create_materialized_views Isomorphic docker (#1124) 4 years ago
scripts Upgrade Rust version 3 years ago
src Rewrite settings implementation. Fixes #1270 (#1433) 3 years ago
.dockerignore Trying out cargo chef and a travis docker image cache. (#1238) 4 years ago
.drone.yml Upgrade Rust version 3 years ago
.gitignore Halfway done with hot rank indexes. 3 years ago
.rgignore Adding a new comment sort for posts. Fixes #1294 (#1425) 3 years ago
.rustfmt.toml Adding a new comment sort for posts. Fixes #1294 (#1425) 3 years ago
CONTRIBUTING.md Moving docs to join.lemmy.ml . Fixes #1396 (#1410) 3 years ago
Cargo.lock Use URL type in most outstanding struct fields (#1468) 3 years ago
Cargo.toml Use URL type in most outstanding struct fields (#1468) 3 years ago
LICENSE Initial commit 5 years ago
README.md Update README.md 3 years ago
RELEASES.md Updating release version. 3 years ago
diesel.toml Isomorphic docker (#1124) 4 years ago

README.md

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

Lemmy

A link aggregator / Reddit clone for the fediverse.

Join Lemmy · Documentation · 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.

The overall goal is to create 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.

Note: The WebSocket and HTTP APIs are currently unstable

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.
  • OEmbed support via Iframely.
  • High performance.
    • Server is written in rust.
    • Front end is ~80kB gzipped.
    • Supports arm64 / Raspberry Pi.

Installation

Lemmy Projects

Apps

Libraries

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.

Crypto

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

Contributing

Translations

If you want to help with translating, take a look at Weblate. You can also help by translating the documentation.

Contact

Code Mirrors

Credits

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