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.
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
To test it you can just put it into the browser console (F12), but adding it to an instance will require it to be added to a javascript file that's loaded and run on page open.
It's not the most ideal way of removing the feature, but it depends on what you're needing your instance to do. If it's just a personal instance, then I guess you could just run this line via a browser extension such as Greasemonkey, which would remove it in your client browser (not on the instance itself).