Procházet zdrojové kódy

Made it so that we store the origin IP for user-submitted articles.

master
Trey Del Bonis před 2 roky
rodič
revize
d9112b0ca6
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1
    0
      app.py

+ 1
- 0
app.py Zobrazit soubor

@@ -135,6 +135,7 @@ async def handle_submit(req: Request, article: str = Form(...)):
return make_html_redirect_response('/')

# If it all looks good then store it and report it.
fetched_art['srcip'] = ipaddr
await add_article(eff_date, fetched_art)
await reporthook.send_report('address %s submitted good-looking article %s' % (ipaddr, article))


Načítá se…
Zrušit
Uložit