this post was submitted on 31 Jul 2023
12 points (92.9% liked)

Lemmy Support

4651 readers
4 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I have setup the Lemmy backend but I can't see the backend running just only json is displaying. Lemmy ui is also setup properly but with very limited features. See the attached screenshot of the backend. I run "cargo run" command to start the Lemmy Backend

top 11 comments
sorted by: hot top controversial new old
[–] Max_P@lemmy.max-p.me 6 points 1 year ago* (last edited 1 year ago) (1 children)

The lemmy backend doesn't have a UI, all it talks is JSON through APIs. That's what lemmy-ui is for, it's the UI that goes on top. It's also why the default setup overlays it on top of the backend: they're meant to work together where the UI handles browser requests, but if it's a JSON/API request then it goes to the server instead. They provide the same data in different formats on the same URLs.

[–] akwebdev@lemmy.ml 2 points 1 year ago (2 children)

@max-P thanks for the quick reply. but please tell me how can I manage my users the lemmy-ui has limited features.

[–] Max_P@lemmy.max-p.me 4 points 1 year ago (1 children)

You just go directly to the user's page, and from there you can do things like ban/delete/purge.

As for communities, you can promote users to moderators via the 3 dots overflow menu once they have posted/commented on a community.

Otherwise, there just isn't really a user management page or system. It's a bit clunky but that's how it works at the moment.

[–] utopify_org@lemmy.ml 1 points 1 year ago (1 children)

You just go directly to the user’s page, and from there you can do things like ban/delete/purge.

I've created a test account, but emails didn't work to verify and now I have an account I can't resend verification and there isn't a purge button.

How exactly do you purge a user?

[–] Max_P@lemmy.max-p.me 1 points 1 year ago (1 children)

It's a little bit clunky, you don't have anything on the user's page but if the user has any posts you can click the 3dots menu and it's there.

If the user has no posts you may need to delete from the database directly for now. There might be an API but I'm not familiar with Lemmy's API.

[–] utopify_org@lemmy.ml 1 points 1 year ago

but if the user has any posts

They are unverified, they can't have posts.

If the user has no posts you may need to delete from the database directly for now.

Do you know by any chance how to do this in a clean way, because I tried and there have been restovers.

[–] HKayn@dormi.zone 4 points 1 year ago (1 children)

What would you like to manage?

If you know SQL, you can view your users in the database directly.

[–] akwebdev@lemmy.ml 1 points 1 year ago

I actually manage my users like wants to see which user subscribed to the community, randomly send alerts to users, etc.

I am very much familiar with SQL queries, but it is hard to run queries all the time.

[–] infamousbelgian@waste-of.space 4 points 1 year ago (1 children)

You… can’t. Well only directly via the database if you really want to…

[–] akwebdev@lemmy.ml -1 points 1 year ago (1 children)

It is a big portal.....it should have the backend

Management of an instance is very limited and incorporated in the frontend.

I am not a good enough developer to make PR’s to the open source codebase, but someone reading this might be…

I think a replacement of the banned user list by a list of the users on your own instance might help a lot. Makes it easier to navigate to your users and individually manage them (with the tools already available).

However this might scale badly for large instances.