mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
og: fix viewing readmes
This commit is contained in:
parent
e6c55d7ff9
commit
d75a2c77da
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue