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
Artur Mullakhmetov and Umputun
b04eba2d91
do not decrease comments count in case of repeated deletion
2020-11-05 11:00:30 -06:00
Dmitry Verkhoturov and Umputun
b447863542
add deduplication of emails in recursive notifications
2020-10-20 11:08:04 -05:00
Dmitry Verkhoturov and Umputun
4ba32141fa
add recursive email notifications up to highest parent
2020-10-20 11:08:04 -05:00
Dmitry Verkhoturov and Umputun
1ce3cf3d1f
simplify admin email notifications
2020-10-20 11:02:04 -05:00
Dmitry Verkhoturov and Umputun
6f122f93d1
extract Email.buildAndSendMessage from Email.Send
2020-10-18 17:29:44 -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
1980f30666
rewrite notify.Service.do from range to select
2020-10-11 23:13:24 -05:00
Dmitry Verkhoturov and Umputun
bec6bcee0d
use template files instead of statik in dev Dockerfile
2020-10-07 19:32:39 -05:00
Dmitry Verkhoturov and Umputun
36dce6c2ac
fix golangci-lint timeout, bump email min TLS version
2020-10-07 19:32:39 -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
295191955a
Add function createAppFromCmd to server_test.go
2020-08-26 12:39:31 -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
vdimir and Umputun
09f06f587c
Add tests for comment.Imported, refine image.SubmitAndCommit tests
2020-07-09 12:43:07 -05:00
vdimir and Umputun
d7c9aecf03
Submit images from service.Create only after creation in Engine
2020-07-09 12:43:07 -05:00
vdimir and Umputun
9957ab642b
Add Imported field to comment, do not wait image submission for such comments
2020-07-09 12:43:07 -05:00
vdimir and Umputun
1f9566bb47
Use comment timestamp for submitting image ttl
2020-07-09 12:43:07 -05:00
Dmitry Verkhoturov and Umputun
9510962e25
add redis PubSub web cache as an option
2020-06-25 23:14:50 -05:00
Umputun
df9c05b490
add microsoft auth
2020-06-18 18:25:35 -05:00
Dmitry Verkhoturov and Umputun
42d0c67cb3
add context to server errors, properly close datastore in case of errors
2020-06-13 19:07:33 -05:00
Umputun
46f3ced83d
disable some stream tests
2020-06-08 16:10:31 -05:00
Umputun
4d0f909f0e
add reset of the same ip votes on -+ or +- changes and move same ip set and reject check up (above this reset)
2020-06-08 14:59:40 -05:00
Umputun
dc7bb5810f
typo in from_address param
2020-06-05 03:49:49 -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
80854f9d40
allow anon names to inlude non-latin. Add limit (64) to max len #715
2020-05-21 13:18:10 -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
6bee151b25
switch base image
2020-05-12 12:02:13 -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
f5fcd5b254
switch from go-cache to lcw
2020-05-10 20:41:26 +02: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 and Umputun
71dcb13a71
commit proxy images same way as normally uploaded ones
2020-04-25 12:15:26 -05:00
Dmitry Verkhoturov and Umputun
5579bd1a88
close response.Body in image proxy tests
2020-04-24 14:16:01 -05:00
Dmitry Verkhoturov and Umputun
b71e0be095
move cachedImgID and sha1Str from rest.proxy to store.image
2020-04-24 14:16:01 -05:00
Dmitry Verkhoturov
8cb274934e
add DataService.ResubmitStagingImages function call on server start
2020-04-23 00:55:13 +02: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
c7f73a6c84
add image.Store.Info() function
2020-04-23 00:52:36 +02:00
Dmitry Verkhoturov
3a0529e51b
enable golangci-lint for tests, fix discovered problems
2020-04-21 12:01:10 +02:00
Umputun
b4a6cc5473
format comment for UserDetail
2020-04-21 02:40:24 -05:00
Dmitry Verkhoturov and Umputun
513c8f353d
sticter golangci config, fix discovered issues
2020-04-19 16:21:09 -05:00
Dmitry Verkhoturov and Umputun
2acb00d424
rename image.Store.SaveWithID to Save
2020-04-19 16:21:09 -05:00