this post was submitted on 10 Aug 2023
14 points (88.9% liked)

Lemmy Support

4628 readers
4 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Because of copyright laws in my country, I want to get rid of the option to upload images on my instance.

I thought it would be the fastest way to just remove the "upload image" icon from the tool bar. But it's harder than I thought, because I can't find it...

I've installed Lemmy with ansible and it runs with docker containers.

How can I get rid of this icon or even better, the function to upload an image?

I already tried to stop the pictr container, but this avoids uploading icons/banner for communites and thumbnails for new posts will not be generated, which is a no go.

I only want to get rid of the upload option while creating a new post.

Thanks a lot for your help :)

you are viewing a single comment's thread
view the rest of the comments
[–] WontonSoup@lemmy.world 6 points 1 year ago (3 children)

Use the inspect button in your browser and you can pinpoint it in the html which will help you pinpoint it in the actual component.

Be aware though this isn’t shutting off functionality. Just hiding the functionality. People could still upload directly though api calls

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

That's what I did, but to be honest I can't find any HTML files in the docker container or in /srv/lemmy.

Where exactly can I find the html file?

I tried following command:

docker exec -it lemmyutopifyorg_lemmy-ui_1 find . -iname "*" | xargs grep "upload image" 2> /dev/null

The problem is, that I could only find translation files, but no html files.

[–] WontonSoup@lemmy.world 2 points 1 year ago (1 children)

I have no idea how the app is built I hate to say, Ive never looked at it. Was just giving some general advice. If I get some time I'll dig a bit sounds fun

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

It would be really cool to know someone who actually knows what he's doing :) On github someone gave me a good hint were to find this button, but how I actually can find it in a docker container is a riddle for me?