it's easy 🤣

def block_url_spam(x):

z=x['content']

for j in z.split():

if j[0:5]=="https":

if len(x['content'])==len(j) or len(x['content'])+5==len(j):

return "no context"

else:

return codifica_link(x)

Reply to this note

Please Login to reply.

Discussion

god python is ugly

I wrote this function, maybe that's why

you can put lipstick on a pig but you can't make a language syntax readable without thinking a lot about it. python isn't as ugly as rust, so there's some upsides to python.