nyaa/nyaa
Nicolas F 56a670977e [Config Change] Various Gravatar-related changes (#467)
* Add config option to enable/disable gravatar

This is useful when running a development instance behind a firewall
or NAT, where gravatar cannot reach you to serve up the default user
avatar.

* Pregenerate Gravatar default image URLs

If possible (i.e. SERVER_NAME is set), we can pregenerate the constant
gravatar default URL once at application startup, and re-use that,
as url_for calls are surprisingly expensive.

Especially on torrent view pages with lots of comments, this cuts down
on url_for calls massively, saving on my system about 0.3 ms per call.
2018-07-09 22:20:26 -07:00
..
static comments: fix editing for users with a CAPTCHA (#502) 2018-06-16 16:57:14 -07:00
templates Add registration IP (#507) 2018-07-09 22:14:45 -07:00
views users: activation button improvements (#506) 2018-07-09 22:15:19 -07:00
__init__.py [Config Change] Various Gravatar-related changes (#467) 2018-07-09 22:20:26 -07:00
api_handler.py Move bencoded info dicts from mysql torrent_info table to info_dict directory. DB change! 2018-02-02 20:39:02 +01:00
backend.py Implement range bans (#478) 2018-06-29 20:15:04 -07:00
bencode.py bencode: fix nontermination on empty or malformed input 2017-07-24 20:53:48 -06:00
email.py [Config change] Password reset by email (#381) 2017-10-08 04:34:40 +03:00
extensions.py Refactor into an app factory [2 of 2] (#322) 2017-08-01 21:02:08 +03:00
forms.py Implement range bans (#478) 2018-06-29 20:15:04 -07:00
models.py [Config Change] Various Gravatar-related changes (#467) 2018-07-09 22:20:26 -07:00
search.py [ES] Improve search term preprocessing to include literal groups (#477) 2018-04-15 09:53:36 +03:00
template_utils.py Fix keyError from pop (#407) 2017-11-06 23:52:25 +02:00
torrents.py Fix flat PR (#446) 2018-02-04 13:56:29 +01:00
utils.py Redo nuke functionality (#459) 2018-03-25 16:24:44 -07:00