this repo has no description

sdw: search for posts that get right to the point

Changed files
+1 -1
feeds
+1 -1
feeds/sevendirtywords.py
···
return
# https://en.wikipedia.org/wiki/Seven_dirty_words
-
if re.search(r'\b(shit|piss|fuck|cunt|cocksucker|motherfucker|tits)\b', record['text'], re.I) is not None:
repo = commit['did']
rkey = commit['rkey']
post_uri = f'at://{repo}/app.bsky.feed.post/{rkey}'
···
return
# https://en.wikipedia.org/wiki/Seven_dirty_words
+
if re.search(r'^.{0,16}\b(shit|shitting|piss|fuck|fucking|cunt|cocksucker|motherfucker|tits)\b.{0,16}$', record['text'], re.I) is not None:
repo = commit['did']
rkey = commit['rkey']
post_uri = f'at://{repo}/app.bsky.feed.post/{rkey}'