hopefully someone tells me if this is a bad idea

This commit is contained in:
Sakooooo 2025-01-10 21:44:32 +04:00
parent 2c6e8f4e72
commit 993d0d3e8e
Signed by: sako
GPG key ID: FE52FD65B76E4751
2 changed files with 15 additions and 0 deletions

View file

@ -29,6 +29,8 @@
isync = prev.isync.overrideAttrs (old: { withCyrusSaslXoauth2 = true; }); isync = prev.isync.overrideAttrs (old: { withCyrusSaslXoauth2 = true; });
colmena = inputs.colmena.packages.x86_64-linux.colmena.overrideAttrs colmena = inputs.colmena.packages.x86_64-linux.colmena.overrideAttrs
(old: { patches = old.patches or [ ] ++ [ ./colmena-eval.diff ]; }); (old: { patches = old.patches or [ ] ++ [ ./colmena-eval.diff ]; });
fedifetcher = prev.fedifetcher.overriedAttrs
(old: { patches = old.patches or [ ] ++ [ ./plsbackfill.diff ]; });
}; };
# incase something breaks # incase something breaks

13
overlays/plsbackfill.diff Normal file
View file

@ -0,0 +1,13 @@
diff --git a/find_posts.py b/find_posts.py
index a322e62..dd7a076 100644
--- a/find_posts.py
+++ b/find_posts.py
@@ -118,8 +118,6 @@ def add_post_with_context(post, server, access_token, seen_urls, seen_hosts):
return False
def user_has_opted_out(user):
- if 'note' in user and isinstance(user['note'], str) and (' nobot' in user['note'].lower() or '/tags/nobot' in user['note'].lower()):
- return True
if 'indexable' in user and not user['indexable']:
return True
if 'discoverable' in user and not user['discoverable']: