Umputun
b49e242891
wire image staging and image cleanup
2019-03-23 03:06:24 -05:00
Umputun
eb79c3d9f9
implement two-stage image commit with background cleanup
2019-03-23 02:56:58 -05:00
Umputun
debd914e39
adjust image comments
2019-03-22 03:12:54 -05:00
Umputun
eb3dd467ad
change image location to user based, make random uuid for file name
2019-03-22 03:03:41 -05:00
Umputun
bc714480d4
lint: multiple shadowed errors, missed comments for exported methods
2019-03-19 20:54:05 -05:00
Umputun
3c3097cf77
add more image tests, generalize prep for those tests
2019-03-11 14:09:28 -05:00
Umputun
00d3930981
image hashing to sha256
2019-03-11 01:36:54 -05:00
Umputun
3dc20bcbb5
image comments
2019-03-11 01:18:36 -05:00
Umputun
639f6c15f3
wire image save/load to rest and cmd
2019-03-11 01:16:25 -05:00
Umputun
a1450cff57
add image storage
2019-03-10 19:40:14 -05:00
Umputun
1561dc2fda
switch to go mod
2019-03-09 02:02:55 -06:00
Umputun
7d475b185a
common teardown for bolt tests
2019-03-05 22:32:57 -06:00
Umputun
643f255832
fix sorting after altering find results
2019-02-11 16:15:41 -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
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
a731856bb1
fix shared title client caused races
2019-02-02 17:50:13 -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
f7de26ef4b
enforec empty list of comments on nil response
2019-01-25 22:49:52 -06:00
Umputun
8f0b6a6a59
add unit test for counters #261
2019-01-25 17:10: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
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
835e82a441
add guid to rss with comment id
2019-01-08 12:41:10 -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
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
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
acf19e73cf
minor formatting
2018-12-29 18:36:34 -06:00
Umputun
09de97ffd6
resort imports
2018-12-28 00:02:35 -06:00
Umputun
59cdfc3d04
rest/api passes
2018-12-27 20:16:06 -06:00
Umputun
c01bf58c0b
add IsAdmin test
2018-12-24 01:08:08 -06:00
Umputun
fd90623343
missing test for meta accessor with blocked users
2018-12-24 01:03:04 -06:00