Lemmy

12576 readers
2 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS
901
 
 

And for the love of god, can we PLEASE document the fixes we're finding along the way.

I'm currently impacted by the user registration bug that relates to user constraints in the DB - and it's completely ruining what would be an amazing launch. However, apparently some other server owners have it working! Buuuuuttt, no one is posting their secrets - and it's really hampering my ability to deliver this instance.

So, please, someone explain how I fix this issue and get a working instance.

Do I need to roll back? If so, what version? Do I need to run some PSQL? Do I need to patch some Rust?

EDIT: SUCCESS!

Here is the sacred knowledge for my particular situation.

It was half PEBKAC and half bug -

The PEBKAC - If using protonmail SMTP - you'll need 'starttls' for it to work.

If SMTP is broken in this way, it seems to cause a bug in user creation that will essentially create partial data that would prevent user creation with the same name from occuring again. You can use a "plus" address (ie youremail+stuff@domain.com) to work around this in the meantime.

902
903
 
 

I assume this is to be expected as we get closer to the reddit blackout date but I'm just wondering if lemmy.ml is running slower for anyone than usual?

904
46
submitted 1 year ago* (last edited 1 year ago) by Krusty@feddit.it to c/lemmy@lemmy.ml
 
 

Stoo thinking about that old orange site. Let's populate this place with lots of content you don't find anywhere else

905
6
submitted 1 year ago* (last edited 1 year ago) by N00b22@lemmy.ml to c/lemmy@lemmy.ml
 
 
  1. Add a way to disable the related posts thing when we submit a post.

  2. Add support for .mp4/.gif files. I want to send video memes :(

  3. Add flairs for posts and users

That's all for now! Lemmy is amazing

906
 
 

cross-posted from: https://sh.itjust.works/post/42893

Decided to make a little script that listens to textareas in post & comments, and if you press Ctrl Enter while focusing on them, it submits them. I use this to post comments faster and with less bother. It's reminiscent of the RES feature to do the same thing.

If you use Greasemonkey or Tampermonkey, you can install this easily and instantly have CtrlEnter to submit. Let me know any improvements I can make.

// ==UserScript==
// @name         Lemmy Form Submit with Ctrl+Enter
// @version      1.0
// @description  Submit forms with Ctrl+Enter in Lemmy instances so you don't have to click the button every time you want to post something.
// @author       God (https://sh.itjust.works/u/god)
// @match        https://*/post/*
// @match        https://*/comment/*
// @icon         https://join-lemmy.org/static/assets/icons/favicon.svg
// ==/UserScript==

var isLemmy =
  document.head.querySelector("[name~=Description][content]").content ===
  "Lemmy";

if (isLemmy) {
  // Define a global variable to keep track of the currently focused textarea.
  var currentFocusedTextarea = null;

  // Function to attach focus and blur event handlers to all textareas.
  function attachEventHandlers() {
    document.querySelectorAll("textarea").forEach((textarea) => {
      if (!textarea.dataset.ctrlEnterHandled) {
        textarea.dataset.ctrlEnterHandled = true;

        // Check if this textarea is currently focused
        const wasFocused = document.activeElement === textarea;

        textarea.addEventListener("focus", function () {
          currentFocusedTextarea = this;
        });

        textarea.addEventListener("blur", function () {
          currentFocusedTextarea = null;
        });

        // If this textarea was focused, blur and re-focus it to ensure event handlers get triggered
        if (wasFocused) {
          textarea.blur();
          textarea.focus();
        }
      }
    });
  }

  // Attach a keydown event handler to the entire document.
  document.addEventListener("keydown", function (event) {
    // If Ctrl + Enter is pressed
    if (event.ctrlKey && event.key === "Enter") {
      // If a textarea is focused and contains text
      if (
        currentFocusedTextarea &&
        currentFocusedTextarea.value.trim() !== ""
      ) {
        // Your submit logic here
        handleSubmit(currentFocusedTextarea);
      }
    }
  });

  function handleSubmit(textarea) {
    // find the closest type="submit" button and press it.
    textarea.closest("form").querySelector('[type="submit"]').click();
  }

  // Call the function initially to cover textareas that exist when the page is first loaded.
  attachEventHandlers();

  // Observe the document for changes and reattach event handlers when new textareas are added.
  const observer = new MutationObserver(function (mutations) {
    mutations.forEach((mutation) => {
      if (mutation.type === "childList") {
        attachEventHandlers();
      }
    });
  });

  observer.observe(document.body, { childList: true, subtree: true });
}
907
 
 

I know it is familiar, and due to the heavy discussion in the recent days, it is especially hard to circumvent, but please take a look at the links you click on to prevent giving traffic to Reddit as much as possible. Just a small reminder!

908
 
 

I've been on Lemmy for 10 days now and I really enjoy it. The federation is really cool, but compared to Reddit it does have a downside: fragmentation of communities.

I think it would be really cool to be able to combine the feeds of the community Random_topic@example_instance_1 with Random_topic@example_instance_2 etc.

This could work well for reading, but I realize that posting is more difficult. So when posting you should be able to choose on what instance you want to post to the Random_topic 'community group'.

What do you think?

909
 
 

When i tap a post in Jerboa i get a back button to return where i was but in the browser version it is missing, i know this wouldnt be an issue as the browser has its own back button but i wanna use Lemmy as a PWA so it would be very useful.

910
 
 

Hey there, I wanted to join some communities in the programming.dev instance, but it doesn't seem to be connected to any other instance (I can't see it from my account's instance and its community list also only has its own communities). The signup form also freezes if I try to make an account on the instance directly. Am I misunderstanding something here?

911
 
 

Is there a way to migrate your account to another server?

912
 
 

I have just released a Swift Client for Lemmy! It's still early stages, but it has full API parity with the JavaScript client, and full Swift type safety.

I plan on improving the documentation shortly, but wanted to get something up so others could start using it and provide any feedback you might have.

913
 
 

Is there a way to search posts/content? Can it be done on Jerboa?

I can search for communities but haven't been able to find where I can search content.

914
76
submitted 1 year ago* (last edited 1 year ago) by admin@lemmy.elest.io to c/lemmy@lemmy.ml
 
 

Hey dear community, we just launched today our fully managed hosting of Lemmy

We offer to do Deployment / Security / DNS / SMTP / Monitoring / Alerts / Backups / Automated updates / Handle migrations / Fully automated but with Human support :)

We deploy each instance on a dedicated VM, and we provide full root access as well if you want to customize anything.

Pricing start at $10/month (billed hourly, no contract)

https://elest.io/open-source/lemmy

I would love to get some feedback from the community

915
 
 

When I select a block of text containing multiple paragraphs, Lemmy-ui only adds a > symbol to the first paragraph. How can I quote the entire block of text, including all paragraphs?

916
 
 

I feel like a much talked about criticism of getting started with Lemmy is that the 'average person' doesn't understand it. I see a lot of technical people, myself included, use words that the 'average person' shies away from. Mentioning concepts like servers and Fediverse requires some background knowledge. I propose we start using 'providers' instead of servers, as it helps understand the function of it instead of the implementation. There might be more words that could be confusing, so let's have a conversation about them. Are there any you recognize as being able to be simplified, or is this a non issue?

917
 
 

Hey, Lemmies! I've been pondering an idea to enhance our automod system, and I'd love to get your input. LLMs have proven to be quite adept at sentiment analysis, consistently delivering accurate results. Here's what I'm thinking: if we provide the LLM with a set of instance rules and feed it a message, we could ask it whether or not the message adheres to those rules. This approach has the potential to create a robust automod that works effectively in most cases. What are your thoughts on this? Let's discuss and explore the possibilities together!

Example usage:

Rules

  1. No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia. Code of Conduct .
  2. Be respectful, especially when disagreeing . Everyone should feel welcome here.
  3. No porn.
  4. No Ads / Spamming.

Does this message adhere to the rules? Answer only with yes/no and if not provide a short sentence for the report.

Message

918
 
 

last night for example, i was looking at the joinlemmy page, just lemmy.world went from like 400 to 1.3k in a night! hope it keeps up

919
 
 

@dessalines just wanna say I really appreciate all your effort with @lemmy your work is inspiring!

920
 
 

Hello, I'm new to lemmy. Can't figure out how to make image posts expanded by default. I'm on lemmy.ml if that matters

921
22
Intro Guide to Lemmy (tech.michaelaltfield.net)
submitted 1 year ago* (last edited 1 year ago) by maltfield@lemmy.ml to c/lemmy@lemmy.ml
 
 

I wrote a guide to help users with their migration to Lemmy

This guide will help new lemmy users find and subscribe-to (remote) lemmy ~~subreddits~~ communities

922
 
 

I'm not sure if Reddit gave an ability to do this, because I never liked how somebody could see your entire post and comment history. An option to hide this information would be appreciated.

923
924
 
 

I want to start doing programmy things, is there any documentation on API endpoints I can use for reference? Or do I just have to reverse-engineer the code from github?

925
 
 

Reddit made it impossible to have long-term discussions like forums do. Posts would just fade into irrelevance after a day or so, whereas with forums new comments would bump the thread.

Lemmy has a sorting option just like forums:

"New Comments: Bumps posts to the top when they receive a new reply analogous to the sorting of traditional forums"

And Lemmy also has the "Active" sorting method, which says:

"Calculates a rank based on the score and time of the latest comment, with decay over time"

so Active seems like a compromise between Hot like Reddit and the way forums do it by New Comments

https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html

view more: ‹ prev next ›