web.webmention_discover: discard HTTP response in returned endpoint

we don't use it and it's occasionally too big for memcache: https://console.cloud.google.com/errors/detail/CKLVg_O6-5vHpQE;time=PT6H;locations=global?inv=1&invt=AbyzyQ&project=bridgy-federated
pull/1962/head
Ryan Barrett 2025-05-30 14:34:04 -07:00
rodzic e2eaacf2dc
commit 2727082c6f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 3 dodań i 1 usunięć

4
web.py
Wyświetl plik

@ -1043,4 +1043,6 @@ def webmention_endpoint_cache_key(url):
@memcache.memoize(expire=timedelta(hours=2), key=webmention_endpoint_cache_key)
def webmention_discover(url, **kwargs):
"""Thin caching wrapper around :func:`oauth_dropins.webutil.webmention.discover`."""
return webmention.discover(url, **kwargs)
# discard the response since we don't use it and it's occasionally too big for
# memcache
return webmention.discover(url, **kwargs)._replace(response=None)