Lemmy

12524 readers
1 users here now

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

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

founded 5 years ago
MODERATORS
851
 
 

I haven't tried embedding a video on Lemmy yet so I don't know exactly how well it works, but it would be nice if in addition to being able to embed videos from the standard video sources like YouTube, the Lemmy team made it so you could embed videos from other sources too like PeerTube and Odysee.

852
 
 

If a post body contains an unclosed HTML tag, it will be automatically closed it at the end of window.isoData and then all Javascript functionality disappears.

853
 
 

Should tags automatically be added to KBin and Lemmy posts?

Hashtags are the main way content is discoverable on Mastodon.

Meanwhile, most Lemmy and KBin groups focus on a particular topic. And there are hashtags that will be relevant to all (or most) discussions in the group.

So should those tags automatically be appended to posts from Lemmy and KBin?

Keen to hear your thoughts?

#Lemmy #KBin #Mastodon #Fediverse @lemmy @LemmyDev @technology@beehaw.org @fediverse @technology@lemmy.ml

854
 
 

That was one of my favorite subreddits; would love to sub to something similar here.

855
 
 
856
 
 

Title. It would make it easier to browse if I could collapse threads like with reddit. If this is the wrong place to make feature request where can I go to make suggestions?

857
8
submitted 2 years ago* (last edited 2 years ago) by RocksAreCool@lemmy.ml to c/lemmy@lemmy.ml
 
 

I don't have shit to say, but I wanted to at least post something in the name of not being a lucker... so what's up dongbait?

858
 
 

Management found out about organizing before we filed for an election

I won't name the company, but I'll say their outgoing CEO has been in the news quite a bit lying his billionaire mouth off to the Senate about union busting.

I was on the organizing committee and literally two days before we were going to file I was "separated". Since we hadn't filed yet, I wasnt protected.

I'm waiting for my final pay as well as a my 401k contributions to show up in snail mail while I figure out what I'm going to do.

In the meantime, I'm struggling bad. I got bills that need to be paid and food that needs to be bought. I take care of a family member who is in disability and cannot work.

Posting on Lemmy is my last resort, I've had no luck on mutual aid groups on Reddit or elsewhere. I can pay it back or forward when my check arrives.

Anything helps. Venmo is @crass-bolton Cashapp is $crassbolton PayPal is crassallen1993@gmail.com

859
 
 

Hey all,

Here is a amateur script that will add a "easy subscribe" button to the community subscription box that will automatically link you back to you home instance's search page that should make your adding remote communities "slightly" easier than the manual method. You will need a Javascript Injector addon for your browser. I am using "JS Injector" for firefox. Make sure to get an addon that supports allowing the script to run on all sites. This will only add the button on the communities main page (/c/ in the url). Make sure to change the homeInstance var to your home lemmy instance where your account is. If you find a bug or make it better... please fix it and update us. I never code in javascript... so this was all stack overflow searches.

~~You will have to refresh the community page once before the button appears. Something to do with the javascript injector addons not being able to run when lemmy's "client.js" script runs forever (live updater script I beleive). However, once your on a /c/ and refresh once that script doesn't run.~~ UPDATE: FIXED!

Remote Community:

Enjoy, I hope it is of use. Remember never run a script that you don't understand.


// Easier Subscribe Script - by howdy@thesimplecorner.org
/* EDIT YOUR HOME INSTANCE */
var homeInstance = "https://thesimplecorner.org"
/* ---------------------- */
/* Script */
var url = window.location.href;
var currentPage = url;
var broken = url.split('/c/');
var site = broken[0];
var siteBase = document.location.origin;
site = site.replace('https://', '');
var community = broken[1];
var subString = homeInstance + "/search/q/!" + community + "@" + site + "/type/All/sort/TopAll/listing_type/All/community_id/0/creator_id/0/page/1";

function update(comm, page) {
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
      console.log("updating html xhr");
      document.querySelectorAll('[role="alert"]').forEach(function(el) {
        el.innerHTML += "<br /><br /><a href=" + subString + " target='_blank'><button>Easy Subscribe</button></a>";
      });
    }
  }
  xhttp.open("GET", this, true);
  xhttp.send(page);
}
//Browsing remote instance
setInterval(function() {
  url = window.location.href;
  if (currentPage != location.href) {
    broken = url.split('/c/');
    site = broken[0];
    siteBase = document.location.origin;
    site = site.replace('https://', '');
    community = broken[1];
    subString = homeInstance + "/search/q/!" + community + "@" + site + "/type/All/sort/TopAll/listing_type/All/community_id/0/creator_id/0/page/1";
    // page has changed, set new page as 'current'
    console.log("Easy Sub Running...");
    if (document.querySelector('meta[name="Description"]').content.includes("Lemmy")) {
      console.log("On lemmy");
      if ((url.includes(homeInstance) == false) && (url.includes("/c/"))) {
        console.log("On remote instance community");
        update(community, url);
      }
    }
    currentPage = location.href;
  }
}, 500);
// Direct to community
if (document.querySelector('meta[name="Description"]').content.includes("Lemmy")) {
  console.log("On lemmy");
  if ((url.includes(homeInstance) == false) && (url.includes("/c/"))) {
    console.log("On remote instance community");
    update(community, url);
  }
}

860
 
 

More than two million dip in user count?

861
 
 

From RedDark by Untone

862
 
 

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.

863
864
 
 

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?

865
43
submitted 2 years ago* (last edited 2 years 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

866
 
 
  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 sent video memes :(

  3. Add flairs for posts and users

That's all for now! Lemmy is amazing

867
 
 

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) =&gt; {
      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 &amp;&amp; event.key === "Enter") {
      // If a textarea is focused and contains text
      if (
        currentFocusedTextarea &amp;&amp;
        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) =&gt; {
      if (mutation.type === "childList") {
        attachEventHandlers();
      }
    });
  });

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

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!

869
 
 

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?

870
 
 

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.

871
 
 

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?

872
 
 

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

873
 
 

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.

874
 
 

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.

875
77
submitted 2 years ago* (last edited 2 years 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

view more: ‹ prev next ›