this post was submitted on 27 Dec 2020
15 points (100.0% liked)

Lemmy Support

4718 readers
21 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Hi, I am setting up a danish site. The word 'sl*t' means 'to complete' in danish. Whenever we make a post with that word, we get an error saying "no slurs". And the post is not accepted.

It does not help that we have enabled NSFW in community and on the post.

Please help. Thank you :)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 4 years ago (3 children)

Great, thanks. I can modify the line but it would be good if you could explain how to recompile the system as it is running in a docker container based on the manual here:
https://lemmy.ml/docs/administration_install_docker.html

[–] [email protected] 7 points 4 years ago* (last edited 4 years ago) (1 children)
# build the image
docker build . -t docker/prod/Dockerfile -t your-tag
# store to file
docker save -o your-image.tar
# copy to server
scp your-image.tar server:
# load into docker on server
ssh server "cat your-image.tar | docker load"
# then just change the lemmy docker tag in your docker-compose.yml, and run docker-compose up -d

From memory, there are likely some typos. You can also push to a docker registry instead (like docker hub), but this seems easier.

Edit: maybe you could add this to the documentation :)

[–] [email protected] 3 points 4 years ago* (last edited 4 years ago) (1 children)

I think you'd have to compile a local docker image. Maybe @[email protected] or @[email protected] can comment on how to do that.

[–] [email protected] 5 points 4 years ago* (last edited 4 years ago)

Sure I can do that - I just need the build/compile command to include in the Dockerfile.

EDIT: I found the Dockerfile and can build it from https://github.com/LemmyNet/lemmy/tree/main/docker/prod All good

[–] [email protected] 2 points 4 years ago (1 children)

Just a reminder, please make your changes open source too. That's required by the license.

[–] [email protected] 2 points 4 years ago

Ok, thanks 👍