Dmitry Verkhoturov and Umputun
7604548035
Update go to 1.23, golangci-lint to 1.61, baseimage to 1.14
2024-11-08 16:19:58 -06:00
Dmitry Verkhoturov and Umputun
7a71d47556
remove all HTML tags from comment title and username
...
Previously, we stripped unsafe HTML tags but left some,
but it's not expected to have a link in a title or username,
so the new behaviour is stripping everything.
2023-10-10 12:41:26 -05:00
Yury Kotov and Umputun
add01455fb
Fix snippet generation
...
1) Current implementation simply removes the last word, without truncating up to limit length.
2) In case if even the first word (magnet link or some base64?) is too long don't add extra space.
2023-07-04 13:32:37 -05:00
Dmitry Verkhoturov and Umputun
c70a66a1c5
bump go modules
2023-01-21 13:30:44 -06:00
Dmitry Verkhoturov and Umputun
596861a594
don't remove the twitter-tweet class from blockquote
...
This is needed to format the Twitter blockquotes as tweets.
2023-01-09 03:20:54 -06:00
Umputun
598d767791
resolves #415 and the similar issue with title
2022-04-29 10:52:05 -05:00
Dmitry Verkhoturov and Umputun
2a7966b9e6
replace numbers with proper HTTP status codes in tests
...
Also, remove unneeded whitespaces using whitespace
linter for golangci-lint.
2022-04-17 19:42:45 -05:00
Umputun
91441d1160
add controversy and imported to untrusted list
2021-09-01 14:21:52 -05:00
Umputun
e90dae2b94
sanitize Title on find level as well
2021-09-01 14:14:12 -05:00
Umputun
a7b44eee1a
sanitize PostTitle
2021-09-01 13:56:06 -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
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
e762ea7b91
sanitize both locator.URL and user.Picture
2021-03-26 15:06:39 -05:00
Umputun
d40e354265
add more tests for voted_ip
2021-01-18 15:44:32 -06:00
Dmitry Verkhoturov
3a0529e51b
enable golangci-lint for tests, fix discovered problems
2020-04-21 12:01:10 +02:00
Umputun
c5b927904f
extend User struct with site_id/aud
...
updated to 0.8.0 of auth pkgs supporting user-space aud
2019-08-23 03:12:08 -05:00
Umputun
07b16c46dc
unescape quotes from user name #415
2019-08-20 00:07:13 -05:00
Umputun
dfaf4d13d3
add parent summary to rss description #339
2019-07-14 00:00:02 -05:00
Umputun
8ddfa56b82
add unescape table processing after md parsing #354
2019-06-30 12:45:15 -05:00
Umputun
c224676ccd
enable Smartypants for md rendering
2019-06-29 21:58:50 -05:00
Umputun and GitHub
2ff955edf1
feature/comment-formater ( #186 )
...
* extract comment formatter functuionality to allow md in #156
* add abilty to pass multiple convertors to formater
2018-08-10 19:35:45 -05:00
Umputun and GitHub
7aee7add08
Feature/backend ( #101 )
...
* move backend code #99
* adjust drone build for backend subdir
* move .rest to backend
2018-06-23 12:31:19 -05:00