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

Lemmy Support

4719 readers
10 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] 7 points 4 years ago* (last edited 4 years ago) (15 children)

Unfortunately, multi-language support for the slur filter has not been implemented yet. But in the meantime, the slur filter regular expression is on this line. You could take out any offending words that are benign in Danish, and then recompiling the backend. I'd be happy to help you with editing the regex if you have troubles.

[–] [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 👍

load more comments (11 replies)