Lemmy

12572 readers
3 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
326
 
 

[Image description: A screenshot of the lemmy.blahaj.zone front page with a custom userstyle applied. The userstyle features a dark gray background with medium gray text and brightly-colored accents of purple, pink, orange, and cyan. The right sidebar cards are a light shade of gray with lighter gray text, pink buttons, and orange links]

A few weeks ago I decided to try my hand at bringing my favorite theme to Lemmy and this userscript was born. It's still in the early stages so there are some wrinkles to iron out, but I just pushed a big update with better contrast, style fixes, and streamlined code.

I've received several requests to turn it into a native Lemmy theme but have no idea how to do that. If anyone has any tips on theming, interest in collaborating, or a Lemmy instance where I could test a native theme, hit me up! You can find all the code here on Codeberg.

327
 
 

Hello lemmy users!

I've been setting up my own instance and largely everything has been working, bar a few performance issues.

But one thing I'm having issues with is my profile not reflecting on other instances. It doesn't show my avatar, banner or bio. Not sure if I've broken something for this to not work?

Any help greatly appreciated :)

328
 
 

It's come up in the github issues before, but I was wondering if anyone had any positive or negative thoughts about the general idea.

I say microblogging, but it would not need to be micro at all, as many/most fediverse platforms don't bother with the (IMO silly) small character limit default in mastodon.

The feature is probably better described as a "personal feed", where the primary agent is another user not a community.

I've thought about it and come to believe that I would rather like a platform that is lemmy + a microblogging interface/integration.

How it's implement and how viably I don't know. But in terms of design I have the following thoughts:

  • It would feel natural to treat users much like communities (with one post author) and the "microblog feed" just like the current lemmy feed but of followed/subscribed users' posts.
  • In addition to Subscribed, Local, All, you'd have Personals or Blogs.
  • Each user would then have their own "Personal Community", which they could post to like any other. They'd also have moderation controls over it too, which might be a nice addition to the microblogging platform space.
  • Unlike mastodon, replies/comments wouldn't appear in the feed, as all replies would be available only once you view a post, which, I think, would be a wonderful way to organise microblogging content.
  • A "boost/retweet" behaviour could be treated as a cross-post from one personal community to another, except you'd probably want to enable such a "cross-post" be applicable to a comment, which would be congruent with the more free-form nature of "microblogging".
  • You'd want to keep the sorting algorithms, which combined with being able to view only the top-level posts, would again I think be a nice way to handle a "microblogging" feed.
  • Being able to create lists or multi-communities, as has been requested ordinary lemmy, would be very useful for microblogs.
  • Following a microblogging account would obviously just create+subscribe to a "personal community" representing that account. Following a lemmy user account would involve subscribing to their personal community, which would exist by default.
  • You'd probably want to make it as easy as possible in the UI to post links between the microblogging and community "interfaces", so that they could cross-pollinate each other, which, in the case of lemmy users, would be quite nice as any link from one "side" to the other would drop right in a native interface where you can immediately comment/reply or vote etc.

Potential issues I can see:

  • Implementation is likely more difficult than I realise
  • DB sizes could potentially blow up with a whole bunch of microblog content from mastodon?
  • Posting to and engaging with the microblog side might distract many users away from engaging in communities. I suspect that this is a real but minor concern, especially if some improvements come to the communites side of lemmy (eg, multi-communities, the "best" algorithm, making it easier to search through subscribed communities).
  • Some thought would probably have to be given to how to deal with mastodon privacy measures like the no-index option and limits on following etc.

Beyond all of that, my impression of such a platform, should it ever come to be, is that it would be awesome, not just because of the fusion of two formats, but because presenting "microblogs" within the lemmy structure and with lemmy features would bring a number of improvements over something like mastodon: longer posts, markdown, post/comment organisation, feed sorting, search, and direct/native interaction between communities and microblogs. I can see it becoming natural to treat your lemmy(+mblog) account as a quick blogging platform (ie, writing longer posts because you can on lemmy), and cross-posting to the appropriate communities while enjoying that your direct followers will also get the post in their feed. Though this does raise an interesting question about whether following a lemmy user, which would entail getting all of their posts to everything, should also be enabled as a separate option from just following their "personal community"?

Thoughts?

329
 
 

Lemmy community account on mastodon boosts both posts and replies

@lemmy

when i follow a lemmy community on mastodon, the "account" of the community boosts both posts and replies - that is not how it is on lemmy itself, and the replies being boosted lead to a lot of out-of-context on my timeline. why is that so, and is it possible to change it so that it boosts only posts?

330
331
 
 

cross-posted from: https://lemmy.world/post/2112778

This is a useful feature on reddit. I don't want to unsub or block a community or user, but a don't want to keep seeing a particular post in my feed.

332
 
 

First off, sorry if this is question doesn't fit this community. And please bear with me before shoving something down. Totally aware that lemmy.ml has been experiencing a significant surge in traffic lately.

This is my (sort of) test account, and I wanted to get a new account name that actually represents me. It's been almost 2 days since I signed up, and the process seems to be stuck in limbo. Not sure if that's because the username and email address I attempted to register are too cryptic and come off as a dummy.

What's worse is that I mistakenly used the wrong username during sign-up, and now I'm eager to reclaim my email address.

Yes, while I could have easily created an account on another instance and still interacted here, I have my own personal, complicated, and admittedly silly reasons for wanting to have my main under this domain.

All I wanted to know is whether lemmy.ml will open up again in the future. I don't mind waiting if it will. And not sure how can I reclaim my email address.

333
12
Possible security issues? (sh.itjust.works)
submitted 1 year ago* (last edited 1 year ago) by yesbutnobutyesbutno@sh.itjust.works to c/lemmy@lemmy.ml
 
 

Hi,

As my regular instance was experiencing downtime, I decided it might be a good idea to have a backup account on a different instance. So I created a new account on feddit.uk, configured 2FA and all was well. Although…

When I later tried to log on using Voyager, it kept returning a connection error. I tried logging on to the instance directly using the browser: no error, but just lands back on the login page.

Seems like the issue was caused because of the password length (originally 65 characters). Resetting my password and bringing it down to 45 characters resolved the issue. However, directly after the password reset, I was logged in, and my 2FA code wasn't asked?!

For a minute I thought it might be due to cached credentials, but retrying the same scenario in a private window confirmed it. This means that if your e-mail account is compromised, 2FA will no longer protect you.

Another possible issue (just to be clear, in this scenario, your e-mail account is not compromised): if someone is able to access your account (maybe you forgot to log out), they can modify your e-mail address without you being notified, nor do they need to know your password. A verification e-mail will be sent to the new address, and they can reset your password using the approach described above. The new e-mail address does not need to be verified to do so (a verification e-mail is sent, but resetting the password works even if you don't verify), and the old e-mail address is not given a heads up of the change (I know, the old address might no longer work, but still).

Not only can your password be reset this way, after gaining entry, 2FA can be disabled without issue.

Am I wrong in thinking the scenarios described above are security issues? Thanks for your feedback!

334
17
Lists on Lemmy? (lemmy.basedcount.com)
submitted 1 year ago by dan@lemmy.basedcount.com to c/lemmy@lemmy.ml
 
 

Is there any list capability on Lemmy like on Mastodon etc.? It would be great to use them like what Multireddits was on Reddit

335
 
 

What's up with that?

336
 
 

What am I missing?

337
 
 

I have to click on that little mark thingy so they leave my notification bell

338
 
 

So, I am working on building a couple of Lemmy sites with the intent of them being sort of community specific. Now, when I was reading setup it felt like establishing multiple lemmy sites in the same code base was possible.

Is this a configuration that is supported?

339
 
 

I'm running a small instance just for myself and a friend. We basically use it to access the Lemmy fediverse.

I was under the impression that our instance would not download imagery that was not hosted on it but the pict-rs "files" directory ended up with 45 gig of data which ultimately filled up the VPS storage space.

Is there a command that I can automate to prune this regularly or does anyone have a solution?

340
 
 

I'm on lemmy.ml, and I want to subscribe to https://lemmy.world/c/songaweek. There it says to put !songaweek@lemmy.world into search on my instance to subscribe, but it doesn't turn up anything. Anyone know why this might be, and/or how to work around it?

341
 
 

It is nice to know your comment/post are appreciated!

342
 
 

Due to the federated nature of Lemmy there's one small problem: if you link to a community (let's say https://lemmings.world/c/wwdits) the link takes people out of their instance.

On Lemmy it can be solved easily - use !wwdits@lemmings.world and the community opens on their own instance.

But the problem still exists outside Lemmy, let's say you write a blog post and link to some community - people who already use Lemmy will again be taken out of their instance.

And to solve this I created this project, available on https://lemmyverse.link and https://threadiverse.link (both are the exact same app).

Instead of https://lemmings.world/c/wwdits you link to https://lemmyverse.link/c/wwdits@lemmings.world and you're greeted with this:

A page letting you choose whether you want to continue to the link or set your home instance first

You can either continue directly if you don't care, or you can set your home instance and afterwards every link at https://lemmyverse.link will automatically be redirected to your preferred instance (with a small countdown allowing you to change your instance):

A page with a redirect to the target community

If enough people start linking using this service, it will greatly improve the experience for Lemmy users!

Let me know what you think!

Edit: Source code is here: https://github.com/RikudouSage/lemmyverse.link

343
 
 

I created an account on lemmy.world and it's all working fine through the webpage. However, when I try to login through any of the apps (connect, thunder, etc) it says "incorrect login".

344
18
submitted 1 year ago* (last edited 1 year ago) by rikudou@lemmings.world to c/lemmy@lemmy.ml
 
 

If you're running an instance and have direct access to the database, you can run some of these SQL queries on your database:

Local users with most comments

select p.name,
       p.display_name,
       (select count(id)
        from comment c
        where c.creator_id = p.id) as comments_count
from person p
where local = true
order by comments_count desc
;

Local users with most posts

select p.name,
       p.display_name,
       (select count(id)
        from post p2
        where p2.creator_id = p.id) as posts_count
from person p
where local = true
order by posts_count desc
;

People who disliked a specific comment

If your SQL client doesn't support parametric queries, you have to replace the question mark with the comment ID manually.

select p.actor_id
from person p
         inner join comment_like cl on cl.person_id = p.id
where cl.comment_id = ?
  and cl.score = -1;

People who disliked specific post

If your SQL client doesn't support parametric queries, you have to replace the question mark with the post ID manually.

select p.actor_id
from person p
         inner join post_like pl on p.id = pl.person_id
where pl.post_id = ?
  and pl.score = -1;

Most disliked posts of a user

If your SQL client doesn't support parametric queries, you have to replace the question mark with the username in single quotes (for example 'rikudou' for mine). Note that this query fails if there are multiple users with same username but on different instances, in that case you should replace (select id from person where name = ?) with (select id from person where actor_id = ?) and instead of username for the question mark you need to use the link to their profile (for example 'https://lemmings.world/u/rikudou' for mine).

select p.ap_id, p.id, count(pl.id) as dislikes
from post p
         inner join post_like pl on pl.post_id = p.id
where pl.score = -1
  and p.creator_id = (select id from person where name = ?)
group by p.ap_id, p.id
order by dislikes desc
;

Most disliked comments of a user

Read the instructions for Most disliked posts of a user above.

select c.ap_id, c.id, count(cl.id) as dislikes
from comment c
         inner join comment_like cl on cl.comment_id = c.id
where cl.score = -1
  and c.creator_id = (select id from person where name = ?)
group by c.ap_id, c.id
order by dislikes desc
;

Blocked communities by user

Read instructions for Most disliked posts of a user.

select c.actor_id
from community c
         inner join community_block cb on c.id = cb.community_id
where cb.person_id = (select id from person where name = ?)
;

Blocked users by user

Read instructions for Most disliked posts of a user.

select p.actor_id
from person p
         inner join person_block pb on p.id = pb.target_id
where pb.person_id = (select id from person where name = ?)
;

Which comments by a specific user were disliked by another specific user

If your SQL client doesn't support parametric queries, you have to replace the :yourUsername with the username in single quotes (for example 'rikudou' for mine), same for :dislikerUsername. For additional instructions read instructions for Most disliked posts of a user.

select c.ap_id, c.id
from comment c
         inner join comment_like cl on cl.comment_id = c.id
         inner join person p on p.id = cl.person_id
where cl.score = -1
  and c.creator_id = (select id from person where name = :yourUsername)
  and p.name = :dislikerUsername;

Only local votes for a comment

If your SQL client doesn't support parametric queries, you have to replace the question mark with the comment ID manually.

select c.ap_id,
       c.id,
       count(case cl.score when -1 then 1 end) as dislikes,
       count(case cl.score when 1 then 1 end)  as likes,
       sum(cl.score)                           as score
from comment_like cl
         inner join person p on cl.person_id = p.id
         inner join comment c on cl.comment_id = c.id
where p.local = true
  and cl.comment_id = ?
group by c.ap_id, c.id
;

Only local votes for a post

If your SQL client doesn't support parametric queries, you have to replace the question mark with the post ID manually.

select p.ap_id,
       p.id,
       count(case pl.score when -1 then 1 end) as dislikes,
       count(case pl.score when 1 then 1 end)  as likes,
       sum(pl.score)                           as score
from post_like pl
         inner join person pe on pl.person_id = pe.id
         inner join post p on pl.post_id = p.id
where pe.local = true
  and pl.post_id = ?
group by p.ap_id, p.id
;


Let me know if you want any other SQL queries and I might take a look into it!

Edit: Added more queries, I'll probably add more without announcing I did an edit from now on.

345
 
 

This morning I was forced to ban about 18 users for being obvious spambots. That deleted their content on my instance. Are they now banned on other instances, too? I'm just trying to figure out what the best process is for eliminating these spambots for good before they flood all of our feeds.

346
347
20
submitted 1 year ago* (last edited 1 year ago) by erranto@lemmy.world to c/lemmy@lemmy.ml
 
 

Hi I found out that it is possible to create a thread on a lemmy community using a mastodon account by mentioning the community handle. but the process is quite undocumented and unknown to many of us.

How Can I make a thread with a separate title and post body from an app like tusky?

how to make the community @ mention not appear on the title ?

Are there any propagation problems to be aware of ?

sometimes the post doesn't show on the community feed, or takes too long to show, or shows from another instance quicker than the one I have posted in. the post might have the correct creation timestamp but fails to show up on the lemmy community promptly.

348
481
submitted 1 year ago* (last edited 1 year ago) by mr_MADAFAKA@lemmy.ml to c/lemmy@lemmy.ml
 
 
349
 
 

Now that the PRs have been mostly merged, here's what the LemmyUI contribution graph looked like after Reddit went garbage overnight

350
 
 

Hey everyone, I figured that some new users might not know that comments and posts have a formatting standard called Markdown.
In simple terms, Markdown is a (semi)universal language that uses formatting symbols to give a certain style to a portion of text.
This quick guide can help you to write in a way that's more appealing and easy to read.

FORMATTING SYNTAX EXAMPLE
New line put two spaces at the end of the line you want to break Line__
New paragraph return two times at the end of the paragraph Line↵↵
Horizontal rule between each paragraph put three "-" or "*" ***
Bold put your text between two "**" or "__" **Bold** or __Bold__
Italic put your text between two "*" or "_" *Italic* or _Italic_
~Sub~script put your text between two "~" ~Subscript~
^Super^script put your text between two "^" ^Superscript^
Inline code put your text between two "`" `sudo rm -rf /`
Headings and Titles put one or more "#" at the beginning of the line # Headings for level 1, ## Headings for level 2...
Blockquotes put ">" at the beginning of the line > Blockquote
Links put the the text between [ ] and the link between ( ) [Links]( https://piped.video/watch?v=dQw4w9WgXcQ )
Images Images like links but you put "!" before the first square bracket ![Images]( https://lemmy.ml/pictrs/image/fa6d9660-4f1f-4e90-ac73-b897216db6f3.png?format=webp&thumbnail=96 )

You can also do unordered lists using "-" at the beginning of each line:

- Salt
- Potatoes
- Beans

will become

  • Salt
  • Potatoes
  • Beans

Or ordered list by putting "1." at the beginning of each line:

1. Salt
2. Potatoes
3. Beans

will become

  1. Salt
  2. Potatoes
  3. Beans

You can save other users from spoilers by encasing a paragraph between a section that starts with ":::" followed by a space and the word "spoiler" + the title of the spoiler and ends with ":::". The spoiler will be hidden inside a menu and you'll be able to see it if you click on it

warning! spoiler!
the butler did it

will become

warning! spoiler!the butler did it


In the end you can also format big code blocks by putting "```" at the beginning and at the end of each paragraph

```
println("Hello World!")
```

will become

    println("Hello World!")  

Last but not least remember that you can always use break formatting syntax by putting "\" in front of a character:
so if I want "^" in my text without having the rest of the paragraph in superscript, I'm simply going to write "\^"


Now go and have fun!

view more: ‹ prev next ›