diff options
Diffstat (limited to 'client.go')
-rw-r--r-- | client.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -583,6 +583,12 @@ func MediaProxy(url string) string { if re.MatchString(url) { return url } + + re = regexp.MustCompile("(.+)?\\.onion(.+)?") + + if re.MatchString(url) { + return url + } MediaHashs[HashMedia(url)] = url return "/api/media?hash=" + HashMedia(url) |