Umputun and GitHub
d5246c9689
Deps bump ( #956 )
...
* remove redundant sprintf
* bump many deps
* missing vendors
2021-04-27 00:30:38 -05:00
Umputun
807160dcf6
prep admin to support multiple keys, per aud (siteID)
2021-02-15 13:14:23 -06:00
Umputun
d40e354265
add more tests for voted_ip
2021-01-18 15:44:32 -06:00
Umputun
1048355b7b
strip voted_ip from response
2021-01-18 15:44:32 -06:00
Umputun
5296074dae
fix sanitize policy to allow loading-lazy for images #855
2021-01-18 15:36:15 -06:00
Umputun
849c133082
reformat long error calls to multi-line
2021-01-17 14:21:58 -06:00
Umputun
6d525e4820
remove no-cache from /api/v1/avatar api
2021-01-15 16:22:45 -06:00
Umputun
12b0fbe75d
remove no-cache from /avatar api
2021-01-15 16:18:10 -06:00
Umputun
0dd3cd93ee
add no-cache to Cache-Control on static files
2021-01-15 14:55:32 -06:00
Umputun
eb21a05b7b
add optional frame-ancestors (Content-Security-Policy) for the list of hosts passed by user
2021-01-03 02:33:51 -06:00
Dmitry Verkhoturov
809a7c7dbd
Clean unused stream code
...
It was supposed to solve #253 but frontend part for it in
#357 was never finished, and backend code produces false
positive test failures since day 0. The cost of just having
this code around is too high, we'll re-add it in case
frontend implementation will be finished.
2020-11-30 02:00:59 +01:00
Dmitry Verkhoturov and Umputun
6426ea154e
#819 add SendJWTHeader auth option, expose it on /config
2020-11-29 18:18:22 -06:00
Dmitry Verkhoturov and Umputun
1ce3cf3d1f
simplify admin email notifications
2020-10-20 11:02:04 -05:00
Dmitry Verkhoturov and Umputun
ced40b525a
move email notification logic into Email struct
2020-10-18 17:29:44 -05:00
Dmitry Verkhoturov and Umputun
c9b395f60d
separate notify.SubmitVerification from notify.Submit
2020-10-11 23:13:24 -05:00
Dmitry Verkhoturov and Umputun
b974fd9cc4
add ability to set multiple admin emails for notifications
2020-09-02 15:09:46 -05:00
vdimir and Umputun
14bcbfa901
Add function randomPath to rest_test.go
2020-08-26 12:39:31 -05:00
Umputun
1eedcc0eb3
don't allow anon with space prefix or suffix
2020-08-16 21:12:42 -05:00
Umputun
729b6d2d08
add --proxy-cors $PROXY_CORS disabling internal cors middleware #749
2020-07-27 16:58:47 -05:00
Umputun
46f3ced83d
disable some stream tests
2020-06-08 16:10:31 -05:00
Dmitry Verkhoturov
80f4862c9c
fix leaking goroutines and add tests for them
2020-06-01 09:58:48 +02:00
Umputun
55dd5bd25b
skip LastCommentStream test
2020-05-26 15:29:56 -05:00
Dmitry Verkhoturov and Umputun
890d7154e7
bump go modules
2020-05-24 19:00:07 -05:00
Dmitry Verkhoturov and Umputun
0d67f7e53d
bump golangci-lint version, fix discovered issues
2020-05-24 19:00:07 -05:00
Umputun
d8ce444df0
move logging for protected routes to INFO level
2020-05-12 23:15:06 -05:00
Umputun
c10354584d
dbl request limit size for count query
...
for sites with a lot of posts on the page, the list of all urls can exceed the default 64k limit. I've see the request like this from news.radio-t.com
2020-05-12 22:26:45 -05:00
Umputun
0895de2f7e
rename all packages from the legacy remark/ to remark42
2020-05-12 11:34:16 -05:00
Pavel Mineev and Umputun
b90d076fdf
Move html to separete files
2020-05-10 23:51:13 -05:00
Dmitry Verkhoturov and Umputun
bbfeaeb3d0
go-consistent proposed changes
2020-05-04 02:22:16 -05:00
Dmitry Verkhoturov and Umputun
e922fc31a2
enable gocritic linter and fix found issues
2020-04-26 17:05:34 -05:00
Dmitry Verkhoturov
5ae6dcf652
introduce image.Service commitTTL and cleanupTTL properties
...
This allows having separate values of TTL for Commit and Cleanup
and moving them apart in time, also clarifying their connection
to EditTime which was previously outside of the package level.
2020-04-23 00:54:30 +02:00
Dmitry Verkhoturov
3a0529e51b
enable golangci-lint for tests, fix discovered problems
2020-04-21 12:01:10 +02:00
Dmitry Verkhoturov and Umputun
513c8f353d
sticter golangci config, fix discovered issues
2020-04-19 16:21:09 -05:00
Dmitry Verkhoturov and Umputun
c3896934c9
don't use cache in rest tests which don't utilize it
2020-04-14 13:47:27 -05:00
Umputun
3cb07b9cd6
fix incorrect sinceTime for comments stream
2020-04-14 03:40:10 -05:00
Dmitry Verkhoturov and Umputun
afc94adc1b
remove log package usage from tests, sort imports
2020-04-13 16:01:51 -05:00
Dmitry Verkhoturov and Umputun
dba77d403d
bump go-pkgz modules, bbolt new url
2020-04-12 16:09:01 -05:00
Dmitry Verkhoturov and Umputun
fc63493e7e
return proper content type instead of image/*
2020-04-12 03:57:08 -05:00
Dmitry Verkhoturov and Umputun
cab3b8a831
move admin email notifications call to rest/api module
2020-04-06 16:27:19 -05:00
Dmitry Verkhoturov
4539b8ffb4
hide image.Store from image.Service consumers
2020-03-27 21:03:49 +01:00
Dmitry Verkhoturov
33dde7d4dd
move MaxSize, MaxHeight and MaxWidth from image Storage to Service
2020-03-27 02:10:49 +01:00
Dmitry Verkhoturov
ef6634e9b3
exclude unused filename from image.Store.Save() parameters
2020-03-26 23:04:49 +01:00
Dmitry Verkhoturov and GitHub
c9a23698ba
Image interface changes ( #623 )
...
@paskal
* sort imports, add missing copyright
* regenerate engine mock
* make all image.Store interface functions public
* go mod tidy
* make image.Store.Load return []byte instead of io.ReadCloser
* separate memory_store example RPC server to multiple files by handlers groups
2020-03-22 20:43:43 -05:00
Umputun
1334048d89
allow /api/v1/user calls for robots
2020-02-09 14:41:38 -06:00
1e548eb85f
Code colors (backend support) ( #590 )
...
* testing code highlight with bfchroma render
* add bfchroma vendoring
* render code htm with classes
* adjust bfchroma test cases inside formatter
* go mod tidy
* fix markdown code render tests
* adjust comment text sanitizer to permit code HTML classes
* go mod tidy
* add chroma classes list regexp
* unify gitignore entries style
Co-authored-by: Umputun <umputun@gmail.com >
2020-02-08 21:11:12 -06:00
Umputun
be3e5f0246
set exclude-use-default: false for linter
2020-01-27 14:17:05 -06:00
Artur Mullakhmetov and Umputun
22a88c579f
Fix unstable test
...
Make comment consistent with code
Decrease timeout param to prevent unwanted 200 response
2020-01-26 11:35:17 -06:00
Anton Panferov and Umputun
d69495a9e4
Preserving external images (issue #399 ) ( #447 )
...
* added passing userID to formatters
* added images preserver
* pinned version of golangci-lint
* implemented caching in proxy
* added tests for caching proxy
* removed previous implementation
* removed passing userID into formatter
This reverts commit 05014a5b24190836958377fcd7304294ed02f061.
* made linter happy
* removed storing image extension for FS store
* fixed bug with context cancelation preventing reading downloaded image
* fixed bug with trusting return value and ignorring error
* updated README
* added nolint for sha1
* removed unused resized flag
* added backward compatibility for config
* added handling deprecated cli parameter
* corrected func comment
* made linter happy
* made linter happy
2020-01-18 22:31:30 -06:00
Dmitry Verkhoturov and Umputun
0b55c4f7ad
lower Cache-Control max-age from 24h to 1h to increase speed of updates delivery
2020-01-18 17:58:58 -06:00
Umputun
b0898cd1f3
add cache control for frontend assets
2020-01-15 15:07:45 -06:00