Search
How to use extra_theme
folder?
New Lemmy admin here. I found the [Theming Guide] in the Lemmy docs, but it jumps directly to the 'After a theme is added' section without explaining how to add or create themes. I've searched for examples but couldn't find any configuration that includes these details.
I found [hanubeki-lemmy-themes], which actually contains some good themes. However, when I copied the 5
folder to my extra_theme
folder, nothing happened. Can someone guide me on how to add these themes to my instance?
Update:
You should put all your css file in the extra_themes
folder, each .css
is a theme. For [hanubeki-lemmy-themes] I put all the dist
and src
files in extra_themes
and it works. I already done this before, but my browser was [caching lemmy-ui static files for 24 hours], so when I delete the cache it just works.
[Theming Guide]: https://join-lemmy.org/docs/administration/theming.html [hanubeki-lemmy-themes]: https://github.com/hanubeki/hanubeki-lemmy-themes [cashing lemmy-ui static files for 24 hours]: https://github.com/LemmyNet/lemmy-ui/blob/2b726b51b5a0a2751bc0e955c39b3179284a1695/src/server/middleware.ts#L48-L51
> Thank you Sami, it was a cash problem, I updated the post with more details
Checking admin status of user via the API
Sorry if this is the wrong community, not sure where else to post the question, and I'd rather avoid creating an issue over on Github.
Is there a way to check if a federated user is an administrator via the API? .get_person_details()
will have the admin field set to false for all other than local admins and .get_community()
only reveals the list of moderators.
I know I could scrape the admin list from the main page html, but scraping html is prone to errors if an instance uses an alternative frontend or the frontend is updated. Getting the data via the API should be a more stable solution.
Based on #3703 it seems like a decent chance that this information isn't currently exposed to federated instances though?
Postgres using a lot of CPU since update
EDIT: It seems to have been fixed thanks to @[email protected]. Running analyze verbose;
in postgres.
After updating to 0.19.5 from 0.19.3 my postgres is often using up 500%+ of CPU according to docker stats and often going to 100% CPU on most cores according to htop. Also noticed in the uptime monitor: !
htop shows one of the 5 postgres processes constantly on UPDATE. I think this might be part of the problem.
I'm not comfortable with postgres and am honestly completely in the dark how or where to mitigate or even pinpoint this issue.
Any help would be appreciated.
Why can't I see a specific post in [email protected] from lemmy.ml when the same post is visible on other instances?
EDIT: After discussing this on Matrix, I believe the answer is in the mod logs. The author of the post in question was issued a temporary ban in another community on lemmy.ml, which I suspect is affecting the display of this user’s content across all of lemmy.ml even though the post in question is in a different community from the one that issued the ban (which is kinda screwy tbh).
Description of the problem
The last several months, I've been trying to build up the community over at [email protected]. It's going mostly well, but one thing that has me scratching my head lately is that when I'm browsing from lemmy.ml (i.e. <https://lemmy.ml/c/[email protected]>), which is 99% of the time, I can't see the most recent post. Oddly enough, the author is also from lemmy.ml, and I have previously interacted w/ the same user in the comments of older posts, so I know it's not a user-specific issue. I've double checked my profile settings and haven't blocked the community, instance, or user. This issue seems specific to lemmy.ml because I can see it when I browse to the community from other instances.
Any ideas why this could be happening and what I can do to resolve it? Thanks.
Steps to reproduce the issue
- Visit <https://lemmy.world/c/caps> and sort by Active or New. You'll see a post called "Thanks for the chats guys" with one comment.
- Visit <https://lemm.ee/c/[email protected]> - again, the post is visible.
- Now head over to <https://lemmy.ml/c/[email protected]> and look at the feed.
Actual result
The post is not there.
Expected result
The post should show up in the feed.
When does the Lemmy UI show you what instance a user is from?
Answer
As mentioned by @[email protected], if only a username is shown, then that is the display name that the user has set. If there is a username and an instance, then that user has not set a display name.
---
Original Post
There appears to be no rhyme, nor reason to the inclusion of the instance in the poster's username. For clarity, I am referring to the format of @username@instance
. I would have thought that the usernames that don't include the instance are from users that originate from one's local instance, but that appears not to be the case. The second idea was that maybe it was something to do with length, in that a longer username wouldn't include the instance, but that doesn't seem to be the case either.
Lemmy won't show me my posts while being logged in
Go to Settings > Scroll Down > Tick Show Read Posts
> SAVE
-----------------------
---------------------
Without being logged in:
PS: I also have an account on sh.itjust.works and this shit just works over there.
Federation Issues
I run a Lemmy instance at lemmy.sedimentarymountains.com. It has been working for some time. 6 days ago it stopped getting updates from communities it was federated with. If I view all posts by active there is nothing newer than 6 days old. I checked disk space on the server, there is plenty. I don’t appear to be running out of any other resource. I redeployed the ansible playbook which didn’t do anything other then reload some services. I rebooted the server with no change in behavior. I am running 0.18.4 on Ubuntu 22.04.2 LTS.
I did notice that when I searched for [email protected] it started to pull fresh posts, but only from this community. I tried manually searching for a few other communities and I got a one time update of fresh content from them. I’m not sure what has changed. Is there a log I can review for federation issues?
I originally tried to post this from my instance but it didn't ever show up here. I've created an account on lemmy.ml to post this.
Why do I get two different results on two different Lemmy instance?
[solved] Apparently, I had to type in [email protected] instead of just piracy and it does work. Now, I guess, that's one disadvantage of lemmy? !
---------------
[ORIGINAL POST]
sh.itjust.works just doesn't show c/piracy
Changes to user profile not saving?
Hi there,
I am in the process of migrating instances. I have been trying to add a bio and avatar to my profile, but when I press 'Save' at the bottom of my profile settings, I don't see any changes on my profile page.
I have tried this on both instances' profiles, and on desktop and mobile. I don't know if this is an error or perhaps I'm overlooking a necessary step.
Has anybody else encountered this? Any help would be appreciated.
Edit (SOLVED): Changes seemed to push through when I removed the link to my old profile from my bio. Either profiles don't support links, or I hit a character limit. Still not quite sure.
I can't make cross-post work properly
I shared a post about my instance.
Then I hit the cross-post button, chose the community, language and then submitted the form. Although new post created, there is no "cross-posted to" area on both original or target post.
For example here, you can see which communities the post cross-posted to. What am I doing wrong?
Update: looks like both posts should have same URL for crosspost to work. https://github.com/LemmyNet/lemmy/issues/3827
Upgrading from 0.17.2 to .18 failed. i need only the http server
Hi.
i'm using ansible for installation and upgrading.
My setup has an external nginx running which does the SSL part, so i want to remove the SSL and certbot parts of the
/templates/nginx.conf
file.
(i'm not sure if i have to edit the other nginx_internal.conf
file) But with the below settings i get 'Bad gateway'.
Hoping someone can point me in the right direction. Thanks
``` limit_req_zone $binary_remote_addr zone={{domain}}_ratelimit:10m rate=1r/s;
changelog
2023-06-27 Merge remote #5246 and remove certbot and ssl
server { listen 80; listen [::]:80; server_name {{domain}};
location / { proxy_pass http://0.0.0.0:{{lemmy_port}}; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }
access_log /var/log/nginx/access.log combined; ```
How do you @ someone?
As in, how do you mention someone in a comment, so they get a notification that they've been mentioned somewhere? Is it even possible yet? I've tried writing @ following by the username (not screen name, though I tried that too) but it didn't work. Problem is, I've seen people do this in comments before, just can't figure out how.
Edit: Solved.
Subscribe and Block community buttons broken
![](https://iusearchlinux.fyi/pictrs/image/bd0b6a8e-f740-4ed7-800f-8bf51c6eb654.png?format=webp&thumbnail=128)
![](https://iusearchlinux.fyi/pictrs/image/bd0b6a8e-f740-4ed7-800f-8bf51c6eb654.png?format=webp)
This is the only community I've encountered so far where this happens. Its just text and not clickable.
This is quite a serious issue because I don't know how I will be able to keep up with all the other Arch linux users trying to tell me they use arch btw, and I don't know how I will be able to tell them that I do too btw.
Thumbnails not working on my instance
I see I am not alone in this issue. I see many profiles with broken avatar images. Anyone know how to fix it. BTW I am using cloud-flare and I see some weird stuff happening with the image request. If anyone has fixed this please share.
My previous post does not appear in the (local) community that I posted it to
[SOLVED]: The issue was caused by having "Show read posts" unticked in Settings. This will hide your own posts from you!
I recently made a post[1] to this community about a bug that I experienced and reported.
The post does not appear in the New
feed for /c/lemmy_support nor does it appear in my user profile under Posts
[2].
However the post does have 3 replies (from users on multiple different instances) which means that other users can see it across the fediverse, so it's not a federation issue. (Also, my account and the community are both hosted on the same instance - lemmy.ml).
I was not subscribed to /c/lemmy_support at the time I made that post, but I am subscribed now to see if that affects my visibility of this post.
Is this a bug, or am I misunderstanding how lemmy works?
Interestingly, if I view my profile while logged out, it does show the posts that I made, but when logged in it shows zero posts in my profile.
[1] https://lemmy.ml/post/1394597
Trying to Set Up a Lemmy Instance and Having Issues
ETA: This is being done on a Raspberry Pi 4 running 64-bit Raspbian using an external SSD as storage.
I am following the instructions here: https://github.com/LemmyNet/lemmy-docs/blob/4249465e9960cad97245aa03b3ad4c758ff945c7/src/en/administration/install_docker.md
Please note that I have only used docker a few times in the past and have always failed so that could be a contributing factor.
My goal for the moment is just to have the instance on localhost so I can play around with it before deciding if running my own instance is something I have the time for.
Here are the steps I have taken so far and the result:
- apt install docker-compose docker.io
- mkdir /lemmy
- cd /lemmy
- wget https://raw.githubusercontent.com/LemmyNet/lemmy/release/v0.17/docker/prod/docker-compose.yml
- wget https://raw.githubusercontent.com/LemmyNet/lemmy/release/v0.17/docker/prod/lemmy.hjson
- mkdir -p volumes/pictrs
- sudo chown -R 991:991 volumes/pictrs
- change db pswd in docker-compose.yml
- created nginx.conf (in root of lemmy folder) with config info on the above-linked page
- edited lemmy.hjson and changed admin username, admin pswd, site name, hostname (to "localhost," also tried "127.0.0.1"), set postgres pswd to db pswd I put into docker-compose.yml
- then i run docker-compose up -d and get the following message:
`WARNING: The Qa variable is not set. Defaulting to a blank string. WARNING: The k variable is not set. Defaulting to a blank string. ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. `
I imagine I'm doing a lot of things wrong. I would be extremely appreciative for any help anybody can provide.
How can I make the thread index wider?
I'm using Firefox in maximized window on a full hd display. The thread index feels quite cramped, not using the horizontal space properly. Could it be widened?
Best regards,
akik
Frequent Lemmy Backend Timeouts
As far as I can tell, my instance is nowhere near max database connections. However, after about two hours, I always get errors like "WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: Timeout occurred while waiting for a slot to become available" if we're under any load at all. Does anyone know what's going on here? This doesn't seem to be a resource use issue. It happens with the default docker configuration as shown in the docs. It happens if I spin up a test instance and generate a bunch of load, so it seems perfectly replicable.
Edit: The solution for me was building the docker images myself. Didn't matter if I used the official releases from dockerhub, the development images, whatever. It still crashed with this error eventually. I've been up with the images I built myself for eight or so hours, and we seem fine.
Issues Receiving and Sending Federated Data
Hello! I recently turned up a Lemmy server but it appears there’s an issue communicating with other servers. Curling activity json is working for local users, communities, and posts. Does anyone see anything off? Trying to see a user or community apart of another server results in a 404 and vise versa.
https://Lemmy.kutara.io
For example viewing this community from my server results in a 404
https://lemmy.kutara.io/c/[email protected]
Viewing my account from this server results in 404 as well
https://sh.itjust.works/u/[email protected]
EDIT: Thanks for all the help! My solution was here https://sh.itjust.works/comment/113460