Umputun
440beb3303
make sure last returns [] list #262
2019-01-25 23:20:30 -06:00
Umputun
f7de26ef4b
enforec empty list of comments on nil response
2019-01-25 22:49:52 -06:00
Umputun
6250f2e52e
allow empty list of comments on find for fresh post without anything #262
2019-01-25 18:24:58 -06:00
Umputun
1cc09a33f6
fix lack of counter invalidation from the cache #261
2019-01-25 17:35:38 -06:00
Umputun
8f0b6a6a59
add unit test for counters #261
2019-01-25 17:10:22 -06:00
Umputun
1761995482
skip logger pkg
2019-01-22 23:21:36 -06:00
Umputun
32503395ea
add caller pkg to log
2019-01-22 18:30:22 -06:00
Umputun
9375f250d8
switch restricted words logging to log
2019-01-21 17:03:22 -06:00
Umputun
84488182a2
avloid tokenization if lister failed or an empty list of restricted words #237
2019-01-21 16:52:49 -06:00
Aleksandr Melnikov and Umputun
ab6c9a515c
Support restricted words ( #257 )
...
* prepared interfaces and naive implementation for restricted words
* fixed whitespace tokenizer last token handling
* removed unnecessary check in whitespace tokenizer last token handling
* removed unnecessary interfaces, added matcher to service
* now using more explicit naming
* added config parameter/env variable to configure restricted words
provided simple matcher and lister implementation into service
* fixed linter warnings
* fixed linter warnings (part 2)
* added functional tests for rest api
moved check for restricted words into validation stage
* fixed missing error check in rest private test
* fixed failed test that expected validation in specific order
* fixed linter warning
* removed unnecessary 'else'
* removed redundant check from 'DataStore.EditComment'
* replaced exact matching for restricted words with wildcard matching
* fixed race condition when creating wildcardTrie
removed unnecessary wildcard masks
refactored tests in a table format
* improved documentation for restricted words param
* removed wildcardTrie caching as a premature optimization
removed unnecessary validation method ValidateCommentText
moved restricted words validation into service methods that create and update comment
* fixed error name due to linter warning
2019-01-21 16:48:35 -06:00
Umputun
2c988aa226
fix tg send test
2019-01-21 13:34:42 -06:00
Umputun
1a78c6eec6
add @ prefix for non-integer tg channelID #255
2019-01-21 13:28:03 -06:00
Pavel Alimpiev
a9909a91f4
Remove prefixing of a @ character to the channel name
2019-01-18 12:50:13 +03:00
Umputun
62b54eb009
resort imports
2019-01-17 18:50:02 -06:00
Umputun
7fa26343bd
fix a comment
2019-01-17 15:07:47 -06:00
Umputun
2a3051c620
allow separate limiter for updates and posts, agressive default limit
2019-01-17 14:56:11 -06:00
Umputun
f7403f08b9
inject refresh cache to auth, revendor go-pkgz/auth to 0.4
2019-01-17 13:17:16 -06:00
Umputun
168088445f
add caching for replied ids
2019-01-17 01:20:19 -06:00
Umputun
79a8bfe453
don't exclude reply to myself from HasReply detection https://github.com/umputun/remark/issues/248#issuecomment-454882841
2019-01-16 12:20:05 -06:00
Umputun
dff266ec01
add detection of reply and disable edit for such comments #248
2019-01-15 17:05:30 -06:00
Umputun
367c3d0cc2
blocked users returns 401
2019-01-15 13:17:59 -06:00
Umputun
e9585dc568
pass default logger to rest
2019-01-14 16:14:02 -06:00
Umputun
8c8f13fd73
adopt for rest errors and revendor go-pkgz
2019-01-13 23:27:15 -06:00
Umputun
492f92e660
minor fixes for #247
2019-01-13 15:02:44 -06:00
Umputun and GitHub
9767bd42d2
Merge pull request #247 from saromanov/telegram-increase-coverage
...
Telegram increase coverage
2019-01-13 14:55:17 -06:00
Umputun
cfe8391da5
revendor with lgr 0.2
2019-01-11 22:51:43 -06:00
Sergey
c08a31809c
moving back assert.equal
2019-01-12 01:22:08 +05:00
Sergey
dd9b7d46ac
telegram: increase coverage
2019-01-12 01:15:50 +05:00
Umputun
8b0926a338
fix #246
2019-01-11 14:06:31 -06:00
Umputun
e5c8ac18de
bad import
2019-01-08 12:44:07 -06:00
Umputun
835e82a441
add guid to rss with comment id
2019-01-08 12:41:10 -06:00
Umputun
61cf54d231
add comment id to rss
2019-01-08 03:59:15 -06:00
Umputun
781d90e98b
switch to lgr
2019-01-07 22:32:50 -06:00
Umputun
a6df83e960
fix wrong error wrapped in bold #243
2019-01-06 17:49:00 -06:00
Umputun
f76afb9af5
increase reply rss duration to 24h
2019-01-06 17:37:58 -06:00
Umputun
6c02768f5d
fix rest log prefix
2019-01-06 17:08:08 -06:00
Umputun
8d978ffaf1
add post title to rss item
2019-01-06 15:31:29 -06:00
Umputun
6edd24185c
lint: missing comment
2019-01-06 14:57:21 -06:00
Umputun
3472475a82
add rest and batch (cleanup --title) support for title's #241
2019-01-06 14:52:43 -06:00
Umputun
4096302a06
test title not changed if presented
2019-01-05 20:58:34 -06:00
Umputun
ad6491ff14
tg link with post title
2019-01-05 17:48:39 -06:00
Umputun
ea2d87322c
don't pull title if passed by client already
2019-01-05 13:47:11 -06:00
Umputun
0fd8657992
make title extractor optional
2019-01-05 13:22:28 -06:00
Umputun
690a0aa763
add post title to comment
2019-01-05 04:24:49 -06:00
Umputun
7b54b00c01
switched to auth 0.3
2019-01-04 18:09:18 -06:00
Umputun
72a264b771
lint: error checks ignored in migrator test
2019-01-02 18:53:50 -06:00
Umputun
a6d20b1563
lint: missing error check in tests
2019-01-02 11:50:36 -06:00
Umputun
ca1943f909
revendor with auth:0.1.1
2018-12-31 17:47:25 -06:00
Umputun
fdef63c61d
make import expired test to run longer
2018-12-30 23:29:13 -06:00
Umputun
7deee9aaa1
revendor with lateas auth lib, sets logger to stdout
2018-12-30 23:06:20 -06:00