Umputun and GitHub
d5246c9689
Deps bump ( #956 )
...
* remove redundant sprintf
* bump many deps
* missing vendors
2021-04-27 00:30:38 -05:00
ronan and Umputun
df4b0c80ac
Support for Slack notifications
...
Slack notifications: remove debug log
Slack notifications: code lint
Slack notifications: code lint
Slack notifications: code lint
fix according to comments
2021-04-21 12:56:14 -05:00
Umputun
961b8aacd9
update bluemonday to v1.0.5 to fix https://github.com/microcosm-cc/bluemonday/issues/111
2021-04-02 19:41:16 -05:00
Dmitry Verkhoturov and Umputun
5fabbe33d9
make flapping notify drops test less sensitive
2021-03-29 12:48:37 -05:00
Dmitry Verkhoturov and Umputun
8a3f434bc1
fix flapping notify drops test, clarify debug logs
2021-03-28 14:06:58 -05:00
Umputun
aa14069f8b
lint: fix func comment
2021-03-26 16:05:41 -05:00
Umputun
ddbceb5375
post-sanitize location's url in case if stored already #927
...
this is done via service.alterComment the same way as we handle
leftovers from prev issues with results stored already
2021-03-26 16:00:50 -05:00
Umputun
e72f594134
rollback
2021-03-26 15:45:49 -05:00
Umputun
47fee90c60
post-sanitize location's url in case if stored already #927
2021-03-26 15:37:53 -05:00
Umputun
5ed4c7100c
shorter match condition
2021-03-26 15:06:39 -05:00
Umputun
e762ea7b91
sanitize both locator.URL and user.Picture
2021-03-26 15:06:39 -05:00
Umputun
d624526473
adjust email test to be less go version-specific
2021-03-26 12:51:25 -05:00
Aleksandr Veselov and GitHub
a38fd1fdc3
Encode e-mail subject to support non-ASCII chars ( #888 )
...
* Encode e-mail subject to support non-ASCII chars
* Add test for email subject with unicode
* Fix wrong test argument
* Cleanup test function
2021-02-18 16:23:53 -06:00
Umputun
807160dcf6
prep admin to support multiple keys, per aud (siteID)
2021-02-15 13:14:23 -06:00
Umputun
0496c6bb0e
encode discuss user_id made from the name #879
2021-02-12 14:52:00 -06:00
Enes Çakır and GitHub
fb23cd6cf7
Fix empty username check for Disqus migrator ( #879 )
...
by @enescakir
* Fix user ID encoding for empty string
* Revert "Fix user ID encoding for empty string"
This reverts commit 6d901e4b11 .
* Fix empty username check for Disqus migrator
* Fix linter emptyStringTest error
2021-02-12 14:47:19 -06:00
Umputun and GitHub
be2f6d0a20
Fix admin names ( #858 )
...
* fix admin name check for anon login #605
* update readme with admin names info
* lint: list of static site params
* typo
* don't allow email users to reuse admin names
* move admin.names to restricted-names
* forgotten names member
* remove names from example admin
* remove names from prepTestStore
2021-01-20 13:12:09 -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
89a4677391
enforce loading=lazy att to rendered images html
2021-01-17 16:32:26 -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 and GitHub
aff79a6fa9
Same site ( #850 )
...
* switch to auth master for same-site
* add same-site policy support #784
* add parse same site param
2021-01-14 13:06:29 -06:00
Umputun
ed3cd197dd
bump deps
2021-01-03 03:55:00 -06:00
Umputun
a0b2bbf1ed
typo
2021-01-03 03:14:19 -06:00
Umputun
2a02a946e7
lint: make scopelint happy on test
2021-01-03 03:13:20 -06:00
Umputun
1e96f9a5b0
Merge remote-tracking branch 'origin/master'
2021-01-03 03:09:31 -06:00
Umputun
0cb0232fa1
escape [ ] ( ) from tg title #839
2021-01-03 03:09:21 -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
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