diff options
author | FChannel <> | 2021-07-22 19:03:28 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-22 19:03:28 -0700 |
commit | 16b4165e5102fc9b4766e1bd1204ca9cf23199aa (patch) | |
tree | 0a491330799a37558a4d85648f29c45b5311ef59 /client.go | |
parent | 213683bf7245a05aa734ac2bb26fba60705ba5ee (diff) |
added banning media by saving hash in database
Diffstat (limited to 'client.go')
-rw-r--r-- | client.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -641,7 +641,7 @@ func MediaProxy(url string) string { func ParseContent(db *sql.DB, board Actor, op string, content string, thread ObjectBase) template.HTML { var nContent = content - re := regexp.MustCompile(`(>>https?://[A-Za-z0-9_.\-~]+\/[A-Za-z0-9_.\-~]+\/\w+)`) + re := regexp.MustCompile(`(>>https?://[A-Za-z0-9_.:\-~]+\/[A-Za-z0-9_.\-~]+\/\w+)`) match := re.FindAllStringSubmatch(nContent, -1) //add url to each matched reply |