diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.py index 3c88ff0f55..2730b7bece 100644 --- a/zerver/lib/markdown/__init__.py +++ b/zerver/lib/markdown/__init__.py @@ -662,8 +662,6 @@ class InlineInterestingLinkProcessor(markdown.treeprocessors.Treeprocessor): and (not already_thumbnailed) and user_uploads_or_external(image_url) ): - # See docs/thumbnailing.md for some high-level documentation. - # # We strip leading '/' from relative URLs here to ensure # consistency in what gets passed to /thumbnail image_url = image_url.lstrip("/") diff --git a/zerver/lib/thumbnail.py b/zerver/lib/thumbnail.py index dfc448098f..f277f3dac0 100644 --- a/zerver/lib/thumbnail.py +++ b/zerver/lib/thumbnail.py @@ -1,4 +1,3 @@ -# See https://zulip.readthedocs.io/en/latest/subsystems/thumbnailing.html import os import sys from urllib.parse import urljoin diff --git a/zerver/views/thumbnail.py b/zerver/views/thumbnail.py index a40aa22e4e..df242703e3 100644 --- a/zerver/views/thumbnail.py +++ b/zerver/views/thumbnail.py @@ -1,4 +1,3 @@ -# See https://zulip.readthedocs.io/en/latest/subsystems/thumbnailing.html from typing import Optional, Union from django.contrib.auth.models import AnonymousUser