Lemmy

2 readers
1 users here now

Lemmy Info & Tips

We are a friendly community that runs on free open source software.

Basic community rules:

founded 1 year ago
MODERATORS
1
2
3
4
5
5
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
6
5
Leomard (geddit.social)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

A fusion of leopard and the looks of Lemmy logo. It is the part of new macOS application for browsing Lemmy, [email protected].

Artist: vintprox

This work is licensed under a Creative Commons Attribution 4.0 International License.

7
 
 

This post is sent with Liftoff for lemmy. It's written in flutter, so I think you can use it with almost every device.

Source code: https://github.com/liftoff-app/liftoff

8
 
 

Crossgeposted from: https://feddit.de/post/1185964

Please excuse my sub-par JavaScript, I am a backend dev.

All you need to do is paste this into Tampermonkey and enter your username and your instance url (on two locations).

This is not showing other users’ scores and it doesn’t make your score visible to anyone else than yourself.

So no need for karma farming. This is just for fun.

// ==UserScript==
// @name         Lemmy score
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Shows your total post/comment score at the top right.
// @author       You
// @match        ENTER INSTANCE URL HERE (leave the asterisk after the URL)*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=feddit.de
// @grant        none
// @run-at       document-idle
// ==/UserScript==

(function() {
    'use strict';

    var USERNAME = "ENTER USERNAME HERE";
    var INSTANCE_URL = "ENTER INSTANCE URL HERE";

    var totalScore = 0;
    var currentPage = 1;

    function postResult() {
        var navbar = document.getElementsByClassName("collapse navbar-collapse")[0];
        console.log(navbar);
        var ul = document.createElement("ul");
        ul.className = "navbar-nav";
        ul.id = "karma-ul";
        var li = document.createElement("li");
        li.id = "karma-li";
        li.className = "nav-item";
        li.innerHTML = '<div id="karma-div">' + totalScore + '</div>'
        navbar.appendChild(ul);
        ul.appendChild(li);
    }
    function callPage() {
        var userRequest = new XMLHttpRequest();
        userRequest.onreadystatechange = function () {
            if (this.readyState == 4) {
                if (this.status == 200 ) {
                    var res = JSON.parse(this.responseText);
                    if (res.posts.length==0 && res.comments.length==0) {
                        postResult();
                    } else {
                        totalScore += res.posts.map(x => x.counts.score).reduce((partialSum, a) => partialSum + a, 0);
                        totalScore += res.comments.map(x => x.counts.score).reduce((partialSum, a) => partialSum + a, 0);
                        currentPage++;
                        callPage();
                    }
                }
            }
        }
        userRequest.open("GET", INSTANCE_URL + "/api/v3/user?username=" + USERNAME + "&limit=50&page=" + currentPage, true);
        userRequest.send();
    }

    setTimeout(callPage, 200);
})();
9
4
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

Cross-posted from: https://lemmy.world/post/803492

As mentioned before I’m aiming to have something ready in the next 6 weeks ish.

Register your email to get notified when the app is ready to launch!

10
3
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

Cross-posted from: https://sh.itjust.works/post/582598

LemmyTools 0.1.2

New for 0.1.2:

  • Auto-Expand and Click&Drag to expand lemmy images!
  • Hide Lemmy Sidebars - More space for images on feed
  • Auto unblur NSFW images option
  • Option to enable old.Reddit (from https://github.com/soundjester/lemmy_monkey) - Thank you!
  • Hover to activate lemmy Toolbar
  • Significant UI changes
  • Reworked easy button for offsite

Fixes

  • Fix for '#' breaking easy subscribe button
  • Fix for script breaking other sites due to poor isLemmy implementation.
  • Fixed memory allocation issue with eventHandlers
  • Various UI bug fixes (not showing all communities, settings menu display, etc...)

Script Features:

  • Adds “Easy Subscribe” button to remote instance communities.
  • Adds a collapsible sidebar on the side of screen that shows a searchable list of your subscribed communities.
  • Adds link back to home instance and a community browser.
  • Adds an options menu to configure LemmyTools settings.

Feature for future releases:

  • When off site collect a list of communities and display in sidebar for easy subscription. (beginning implementation 0.1.2)
  • Create communities grouping function.
  • Sort sub list by recently visited
  • Create addon for firefox/chrome.

Installation and Configuration:

1 - Browser must have a Userscript addon (Tampermonkey, Greasemonkey, Etc...). Tested with Greasemonkey.

2 - Download either the .JS file or install from greasyfork.

3 - Set home lemmy instance via options page once script is loaded (and manually edit the homeInstance variable for the offsite home instance fix.

This script is all done by a complete amateur for fun. Enjoy and feel free to fork it!

Get it here: Github or GreasyFork

Please submit issues to the github for feature requests and problems: Github LemmyTools Issues

11
 
 

cross-posted from: https://thelemmy.club/post/60352

Well I never had spam issues, until 0.18 forced captchas to be disabled. Thankfully the bots just seem to be signing up, not doing much yet. Using fake emails that never get verified.

So I threw together a little script. Just put this in a sh file, and create a cron job or systemd service to run it every 15 minutes or so. Use your favorite text edit tool to replace "thelemmyclub" with your instance name, or whatever you have your docker containers named. (Check docker ps). You'll also have to be able to run docker without sudo, so add your user to the docker group or put the cron job on root (if you do that make sure only root can access the file, for security)

Also if you set up manually without docker, well I'm sure you have the skills to adapt these commands appropriately.

First though run:

docker exec -it thelemmyclub_postgres_1 psql -U lemmy -h 127.0.0.1 -p 5432 -d lemmy -c "select * from local_user where id in (select local_user_id from email_verification where published < (NOW() - INTERVAL '60 minute'));"

This will list all users who haven't completed email verification, except those that are under an hour old. If you think these are all abandoned accounts and bots, carry on. It's always best to check before doing things to live databases...

Edit: thanks to input from @[email protected]

The sh file you need:

#! /bin/bash
docker exec -it thelemmyclub_postgres_1 psql -U lemmy -h 127.0.0.1 -p 5432 -d lemmy -c "DELETE FROM person WHERE local = 'true' AND id IN (SELECT person_id FROM local_user WHERE id IN (SELECT local_user_id FROM email_verification WHERE published < (NOW() - INTERVAL '60 minute')));"

This will delete all users over an hour old who haven't completed email verification. (Only applies to accounts made after you enabled email verification, so older accounts are safe)

Hope this helps!

12
 
 

On FediDB the total user number for Lemmy has now reached 2,710,730.


"Top" servers first 3 pages are full with spam account:

It is clear these instances are filled with "idle" spam accounts since the MAU (Montly Active Users) and Status Count does not come anywhere close to the total users per those instances.


If anyone knows a solution for these admins to remove the spam accounts please let me know in the comments!

Let's hope v0.18.1 of Lemmy releases soon with the captcha added again since we do need it..

13
 
 

Lemmy backend 0.18.1 RC1 has been released. Will test later today on a clean server before Geddit upgrades.

14
 
 

cross-posted from: https://lemmy.ml/post/1465740

What is Lemmy?

Lemmy is a self-hosted social link aggregation and discussion platform. It is completely free and open, and not controlled by any company. This means that there is no advertising, tracking, or secret algorithms. Content is organized into communities, so it is easy to subscribe to topics that you are interested in, and ignore others. Voting is used to bring the most interesting items to the top.

Major Changes

HTTP API instead of Websocket

Until now Lemmy-UI used websocket for all API requests. This has many disadvantages, like making the code harder to maintain, and causing live updates to the site which many users dislike. Most importantly, it requires keeping a connection open between server and client at all times, which causes increased load and makes scaling difficult. That's why we decided to rip out websocket entirely, and switch to HTTP instead. This change was made much more urgent by the sudden influx of new users. @CannotSleep420 and @dessalines have been working hard for the past weeks to implement this change in lemmy-ui.

HTTP on its own is already more lightweight than websocket. Additionally it also allows for caching of server responses which can decrease load on the database. Here is an experimental nginx config which enables response caching. Note that Lemmy doesn't send any cache-control headers yet, so there is a chance that private data gets cached and served to other users. Test carefully and use at your own risk.

Two-Factor Authentication

New support for two-factor authentication. Use an app like andOTP or Authenticator Pro to store a secret for your account. This secret needs to be entered every time you login. It ensures that an attacker can't access your account with the password alone.

Custom Emojis

Instance admins can add different images as emojis which can be referenced by users when posting.

Other changes

Progressive Web App

Lemmy's web client can now be installed on browsers that support PWAs, both on desktop and mobile. It will use an instance's icon and name for the app if they are set, making it look like a given instance is an app.

Note for desktop Firefox users: the desktop version of Firefox does not have built in support for PWAs. If you would like to use a Lemmy instance as a PWA, use use this extension.

Error Pages

Lemmy's web client now has error pages that include resources to use if the problem persists. This should be much less jarring for users than displaying a white screen with the text "404 error message here".

Route Changes

Pages that took arguments in the route now take query parameters instead. For example, a link to lemmy.ml's home page with a few options used to look like this:

https://lemmy.ml/home/data_type/Post/listing_type/All/sort/Active/page/1

The new route would look like this:

https://lemmy.ml?listingType=All

Note that you now only have to specify parameters you want instead of all of them.

Searchable select redesign

The searchable selects, such as those used on the search page, have a new look and feel. No more inexplicable green selects when using the lightly themes!

Share button

Posts on the web client now have a share button on supported browsers. This can be used to share posts to other applications quickly and easily.

Lemmy-UI Overall look and feel

lemmy-ui is now upgraded to bootstrap 5, and every component is now much cleaner.

Special thanks to sleepless, alectrocute, jsit, and many others for their great work on improving and re-organizing lemmy-ui.

Database optimizations

Special thanks to johanndt, for suggesting improvements to Lemmy's database queries. Some of these suggestions have already been implemented, and more are on the way.

Query speed is Lemmy's main performance bottleneck, so we really appreciate any help database experts can provide.

Captchas

Captchas are not available in this version, as they need to be reimplemented in a different way. They will be back in 0.18.1, so wait with upgrading if you rely on them.

Upgrade instructions

Follow the upgrade instructions for ansible or docker.

If you need help with the upgrade, you can ask in our support forum or on the Matrix Chat.

Support development

We (@dessalines and @nutomic) have been working full-time on Lemmy for almost three years. This is largely thanks to support from NLnet foundation.

If you like using Lemmy, and want to make sure that we will always be available to work full time building it, consider donating to support its development. No one likes recurring donations, but they've proven to be the only way that open-source software like Lemmy can stay independent and alive.

15
 
 

A silly test post from the app 🦊👌🏻

16
 
 

The amount of apps being developed for iOS / Android is getting really crazy now and new apps keep popping up every day.

Updated list below:

  • Artemis (iOS, Android, kbin, lemmy): link
  • Memmy (iOS, lemmy): link
  • Mlem (iOS, lemmy): link
  • Morpha (iOS, lemmy): link
  • Thunder (iOS, Android, lemmy): link
  • Beyond (iOS, Android, lemmy): link
  • Limbo (iOS, Android, lemmy): link
  • Jerboa (Android, lemmy): link
  • Slide (Android, lemmy): link
  • Sync (Android, lemmy): link
  • Unnamed (kbin): link

Most apps on the list are lemmy apps, meaning they don't work with kbin. Artemis is specifically designed to work with kbin, not sure if or when any of the other ones will go in that direction or become interoperable as there are some challenges with the kbin API at the moment. Having said that, a new API is in the works (https://codeberg.org/Kbin/kbin-core/pulls/357) so things should get better with time. Some of the apps are in very early stage of development so it may happen that they adjust OS availability and platform support.

See info in table format with more details:
https://beehaw.org/post/697419

17
 
 

Another day another donut!

18
 
 

An open-source cross-platform Lemmy client for iOS and Android built with Flutter

This app is currently a very very WIP.

There is a community for this at: https://lemmy.world/c/thunder_app

19
 
 

Not sure of this is the right place, but here we go: Which client apps for Lemmy do you use on your, preferrably Android, smartphones? I'm currently having a look at Jerboa, which seems to be quite mature.

20
 
 

Another 100K extra accounts since a few hours ago.

21
 
 

Huh. In the list with "fastest growing #Lemmy instances" are only spam instances now

I'm currently creating an instance ban list for Geddit to block those instances if they don't take action.. This is a disaster waiting to happen :lemmy:

https://fedidb.org/current-events/threadiverse

@lemmy

22
 
 

The developer of Sync, a popular Reddit app for Android, has confirmed that they're building 'Sync for Lemmy'.

The developer confirmed it on Reddit here.

You can track it in the new Lemmy community here.

23
24
 
 

cross-posted from: https://discuss.tchncs.de/post/172270

cross-posted from: https://lemmy.fmhy.ml/post/151060

Someone recently asked if there was a neat way to see where all of the now broken down subreddits moved.

Some moved to Discord, some to Lemmy, and some are somewhere else.

This seems to be a good place to find your communities again: https://sub.rehab/