-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe we should attach a file with a list of communities for each section so users can block/sub to the whole sections at once. #21
Comments
We could easily host them in this repo (or a new one if that's preferred). Lemmy doesn't have a upload block list option though - is there a tool available which will do that? |
Tool for subbing: https://sh.itjust.works/comment/12044014 Hopefully blocks are implemented at this point: https://lemmy.world/comment/1764730 Btw, blocks and subs are in profile settings that you export/import so you can always do something yourself to import the list into the exported file to import it back. |
I created a script https://github.com/fnic-lemmy/lemmy-directory/blob/main/scripts/directory_to_json.py which extracts the entire directory to a JSON file. We can easily modify that to create import files if we know the right format. |
Cool. Will look into how to do that once I finish organising the current set of communities. |
Changed priority of this because I need this soon. |
Import and export have an API: I don't think it's in Pythorhead yet. |
Although if you're doing that you may as well just loop through and follow/block the individual communities. I did have a little tool which did this but it didn't work very well so maybe it's not a very reliable option. |
As discussed on Matrix, a tool which just modifies the manual export/import file might be preferable at this stage. |
https://github.com/fnic-lemmy/lemmy-directory/raw/main/scripts/lemmy_settings_modify.py Very rough draft. The community import/export files need to be lists of communities in URL format (not the format we feed into bestofbot). The wipe_* vars you can set to wipe out your current settings and replace them with the contents of the file. It needs lots of polish, including supporting the same format bob uses. |
Had a few minutes to update this. -S and -B if specified will wipe out the current subs and blocks lists respectively, otherwise the new lists will be appended. The lists which directory_to_json.py creates are in the format this expects. Your output file should be able to be imported into Lemmy successfully (I haven't actually tested this bit) Ideally we need to rewrite this in a portable compiled language to make it easy for people to use. |
This would require figuring out where to host those files, what tools are available for the job etc. At the very beginning of the directory we could share files with political communities so people could easily block those too.
The text was updated successfully, but these errors were encountered: