this post was submitted on 26 Jun 2023
15 points (100.0% liked)

Lemmy Support

4660 readers
21 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I already attempted to change the admin user in the lemmy.hjson by switching the login information to a different account, but it still tells me that I'm not the top admin when I try to purge a community. If this isn't something that I can change, this should be something that is possible to do.

Although I don't know Rust, it looks like the function in the source code for getting the top admin is just getting the first user in the list of admins, is there some kind of database trickery I could do to achieve this?

top 3 comments
sorted by: hot top controversial new old
[–] smorks@lemmy.ca 7 points 1 year ago (1 children)

if you look at the function that gets the admins, then you can see that it's ordered by the Published date, so I believe you can just update the Published date to earlier than the rest of the admins.

Thank you, this was what I needed. I've changed the Published date on the user I want to be the top admin to be earlier, and now it is working as I hoped.

[–] hawkwind@lemmy.management 3 points 1 year ago* (last edited 1 year ago)

It has to be done by manually by changing a row in the database AFAIK. Are you on matrix? If you ask in there someone might work with you.

load more comments
view more: next ›