serve everything under the /njump/ path to prevent conflicts with root domain website.

This commit is contained in:
fiatjaf
2023-05-27 08:42:11 -03:00
parent f9a85a7de1
commit 65a61cdcd6
4 changed files with 9 additions and 10 deletions

View File

@@ -149,7 +149,7 @@ func render(w http.ResponseWriter, r *http.Request) {
textImageURL := ""
description := ""
if useTextImage {
textImageURL = fmt.Sprintf("https://%s/image/%s", hostname, code)
textImageURL = fmt.Sprintf("https://%s/njump/image/%s", hostname, code)
if subject != "" {
description = fmt.Sprintf("%s -- %s", subject, seenOnRelays)
} else {
@@ -181,7 +181,7 @@ func render(w http.ResponseWriter, r *http.Request) {
"videoType": videoType,
"image": image,
"video": video,
"proxy": "https://" + hostname + "/proxy?src=",
"proxy": "https://" + hostname + "/njump/proxy?src=",
"eventJSON": string(eventJSON),
}