Umputun
cb392c5df6
lint: missing comment for errors
2019-02-10 17:52:24 -06:00
Umputun
70ef130976
add error codes
2019-02-10 17:47:58 -06:00
Umputun
08ab725b3d
lint: missing a comment for service.Find
2019-02-10 16:46:21 -06:00
Umputun
13c511b1b0
support controversy in Find for comments stored without it #274
2019-02-10 16:39:08 -06:00
Umputun
ef59281112
add controversy sorting #274
2019-02-10 16:10:58 -06:00
Umputun
7128f66374
add controversy value (votes metric) #274
2019-02-10 15:53:29 -06:00
Umputun
72b60bf823
const for cache TTL
2019-02-02 23:26:03 -06:00
Umputun
38fc7e500c
simplify title setter with anon func
2019-02-02 22:29:02 -06:00
Umputun
3314223120
switch native import lock to sized group
2019-02-02 22:28:16 -06:00
Umputun
e6f30b0768
sync with preemptuve lock in concurrent migrator
2019-02-02 18:45:24 -06:00
Umputun
588af7fc9a
switch title to lcw cache, optimize error hits
2019-02-02 18:25:57 -06:00
Umputun
0af3eda684
write imported records concurrently
2019-02-02 18:09:23 -06:00
Umputun
a731856bb1
fix shared title client caused races
2019-02-02 17:50:13 -06:00
Umputun
0fe3f6dd7d
fix bad default for restricted words
2019-02-02 13:38:40 -06:00
Umputun
76d0cc32e2
use repeater context to avoid long calls
2019-01-30 15:59:00 -06:00
zonescape
de68b8d8ee
fix comment typo
2019-01-29 18:37:25 +03:00
Umputun
3471c5dab8
add missing params to readme
2019-01-27 16:21:05 -06:00
Umputun
af6076187f
set rss descriptions matching rss type
2019-01-27 15:08:39 -06:00
Umputun
b106fe0fc6
increase size of last comments for reply detection to 5000 and time to 31 days #268
2019-01-27 14:28:24 -06:00
Umputun
c7468184ba
fix unexpected blocking if +1 vote in positive score only mode on 0
2019-01-26 17:05:54 -06:00
Umputun
cb5fc79dbe
add site-level positve score support #260
2019-01-26 01:38:56 -06:00
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