og: fix viewing readmes

This commit is contained in:
ed 2024-07-06 16:55:15 +02:00
parent e6c55d7ff9
commit d75a2c77da

View file

@ -4314,7 +4314,7 @@ class HttpCli(object):
if not use_filekey:
return self.tx_404()
if add_og:
if add_og and not abspath.lower().endswith(".md"):
if og_ua or self.host not in self.headers.get("referer", ""):
self.vpath, og_fn = vsplit(self.vpath)
vpath = self.vpath