Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/reader/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,14 @@


def get_subdomain(request):
if hasattr(request, "subdomain"):
return request.subdomain
host = request.META.get("HTTP_HOST")
if host and host.count(".") >= 2:
return host.split(".")[0]
else:
return None
return None


def adjust_read_filter_for_date_range(
Expand Down