Commit Graph
1592 Commits
Author SHA1 Message Date
Vyrtsev Mikhail 24f0c301d3 update readme 2019-01-27 01:23:04 +03:00
Vyrtsev Mikhail 7a394b8e90 support positive score only mode 2019-01-26 23:47:20 +03: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 v.1.2.1 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 5a4e84550d Merge branch 'master' of github.com:umputun/remark 2019-01-25 17:10:26 -06:00
Umputun 8f0b6a6a59 add unit test for counters #261 2019-01-25 17:10:22 -06:00
Misha VyrtsevandUmputun f4a616e2de add widgets to demo page (#263)
* add widgets to demo page

* fix border color in dark mode

* demo page adjusting

* fix indentation
2019-01-25 16:43:57 -06:00
Umputun 1475060555 revendore with auth 0.4.1, fix yandex auth provider bug 2019-01-24 13:58:54 -06:00
Umputun 1761995482 skip logger pkg 2019-01-22 23:21:36 -06:00
Umputun 7aeec9535f revendor with fixed lgr pkg option 2019-01-22 18:44:59 -06:00
Umputun 32503395ea add caller pkg to log 2019-01-22 18:30:22 -06:00
Pavel AlimpievandUmputun e82a8f9824 Update README.md (#259) 2019-01-22 11:12:42 -06:00
Umputun 9375f250d8 switch restricted words logging to log v1.2.0 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 MelnikovandUmputun 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
UmputunandGitHub dbc664e102 Merge pull request #258 from VaultVulp/feature/rework-telegram-integration
Remove prefixing of a `@` character to the channel name
2019-01-21 13:15:09 -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 97d1fa3942 add update-limit to readme options list 2019-01-17 14:57:33 -06:00
Umputun 2a3051c620 allow separate limiter for updates and posts, agressive default limit 2019-01-17 14:56:11 -06:00
Umputun 953ff03e2f missed in last commit 2019-01-17 13:18:49 -06:00
Umputun f7403f08b9 inject refresh cache to auth, revendor go-pkgz/auth to 0.4 2019-01-17 13:17:16 -06:00
UmputunandGitHub 6aae306be6 Merge pull request #250 from Reeywhaar/#248-frontend
Disable comment editing if it has reply
2019-01-17 11:27:37 -06:00
UmputunandGitHub f7851bc5f0 Merge pull request #254 from Reeywhaar/252-fix
Fix wrong label on voting buttons
2019-01-17 11:27:19 -06:00
UmputunandGitHub 225cd04980 Merge pull request #251 from Arelav/master
Prioritize disabled arrows style over general
2019-01-17 11:15:48 -06:00
Umputun 168088445f add caching for replied ids 2019-01-17 01:20:19 -06:00
Umputun ff46cbd173 require authed user to perfrom logout 2019-01-16 23:28:49 -06:00
Vyrtsev Mikhail ddd2c25498 exclude pin/unpin from last comments comment controls 2019-01-17 04:24:17 +03:00
Vyrtsev Mikhail 00bf148630 restore comments controls in last comments 2019-01-17 04:14:06 +03:00
Vyrtsev Mikhail e42110a3ba fix wrong label on voting buttons 2019-01-17 04:07:13 +03:00
Valery KharshatsandGitHub 5a034f4b52 Prioritize disabled arrows style over general
It disables hover color change for not logged in users.
2019-01-16 16:21:05 -05:00
Vyrtsev Mikhail 86fde18b7d hide edit input if original text and edited are same 2019-01-17 00:06:04 +03:00
Vyrtsev Mikhail 7ba4518587 disable comment editing if it has reply 2019-01-16 23:39:23 +03: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 78debf05d9 auth 0.3.3 prevnets expired headers to pe passed in 2019-01-15 13:09:56 -06:00
Umputun e9585dc568 pass default logger to rest 2019-01-14 16:14:02 -06:00
Umputun 177b71655d update deps (lgr and mongo) 2019-01-14 00:06:32 -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
UmputunandGitHub 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