Adhityaa
4890bc4cc7
config_file.go: allow comments with hash prefix
2018-06-21 20:59:42 +05:30
Adhityaa
6f06c4ed65
config_file.go: skip newlines
2018-06-21 20:59:29 +05:30
Adhityaa
ccfdba4f54
config_file.go: trim whitespace before processing
2018-06-21 20:58:26 +05:30
Adhityaa
1b1c97f0f0
api: allow configuration files
...
Closes https://gitlab.com/commento/commento-ce/issues/55
2018-06-21 20:53:06 +05:30
Adhityaa
1e73c980ef
api: run go fmt
2018-06-20 09:20:14 +05:30
Adhityaa
510257fd8b
api: retry database connection if it fails
...
Closes https://gitlab.com/commento/commento-ce/issues/52
2018-06-20 09:19:39 +05:30
Adhityaa
237a02bee9
commenter_session_update_test.go: verify update
...
Fixes https://gitlab.com/commento/commento-ce/issues/53
2018-06-20 09:11:11 +05:30
Adhityaa
ef0f45527a
everywhere: use different session cookie names
...
If the user is hosting the dashboard in the same domain as
their blog (with a nginx suburi, for example), the two session
cookies clash; logging into one service logs you out of the other.
With this patch, both have separate names.
Fixes https://gitlab.com/commento/commento-ce/issues/49
2018-06-20 08:59:55 +05:30
Adhityaa
39043f85d3
domain_import_disqus.go: remove unused import
2018-06-17 17:50:38 +05:30
Adhityaa
590e878679
api: run go fmt
2018-06-16 19:00:03 +05:30
Adhityaa
ef21599109
frontend: use camelCase instead of snake_case
2018-06-16 18:55:27 +05:30
Adhityaa
e93733510b
api: don't auto-upvote new comments
2018-06-14 16:33:40 +05:30
Adhityaa
57e5bc7abc
api: add disqus endpoint
2018-06-14 16:33:40 +05:30
Adhityaa
877a9bf09f
smtp_configure_test.go: clean SMTP_PORT each test
2018-06-13 00:33:42 +05:30
Adhityaa
425312034f
smtp_configure_test.go: clean env before test
...
Sometimes the tests end before they reach the end.
2018-06-13 00:32:32 +05:30
Adhityaa
a3a6f2ba68
api: use COMMENTO_ prefix on errors
...
Closes https://gitlab.com/commento/commento-ce/issues/44
2018-06-13 00:22:08 +05:30
Adhityaa
78384073b0
api: allow gzipped response
2018-06-11 15:02:14 +05:30
Adhityaa
6e57dabdf8
domain_new.go: use stripped domain name
...
Fixes https://gitlab.com/commento/commento-ce/issues/19
2018-06-11 12:05:31 +05:30
Pierre-Alain TORET
73d04bf857
api: add COMMENTO_BIND_ADDRESS variable
...
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
2018-06-10 22:19:29 +02:00
Adhityaa
95d80927b2
Makefile: make devel the default target
2018-06-11 01:19:41 +05:30
Adhityaa
442e3e44de
owner_new.go: create commenter user on ownerNew
2018-06-11 00:16:22 +05:30
Pierre-Alain TORET
08c708341b
Makefile: add test target
...
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
2018-06-10 19:57:36 +02:00
Adhityaa
8b0d198934
api: run go fmt
2018-06-10 23:13:42 +05:30
Adhityaa
42a58f1d87
api: sanitise new commenters' links
2018-06-10 23:13:18 +05:30
Adhityaa
2020405e8b
frontend, api: allow custom emails as commenters
...
I'm really sorry this came out as one huge commit, but I'm afraid
I can't split this up.
Closes https://gitlab.com/commento/commento-ce/issues/9
2018-06-10 22:58:54 +05:30
Adhityaa
a9b235ef0b
frontend: add password reset functionality
2018-06-09 15:49:55 +05:30
Adhityaa
c794c40392
api: add new config SMTP_PORT
2018-06-09 15:49:55 +05:30
Adhityaa
9d5e4f9f96
smtp_templates.go: use STATIC instead of COMMENTO_STATIC
2018-06-09 15:49:55 +05:30
Adhityaa
0d6c3b5992
main.go: load SMTP templates
2018-06-09 15:49:54 +05:30
Adhityaa
5fe785f2fd
owner_reset_hex.go: check for SMTP configuration before queries
2018-06-09 15:49:54 +05:30
Adhityaa
21175cb649
frontend: remove link to account
2018-06-09 14:22:32 +05:30
Adhityaa
8983efabe2
errors.go: remove irrelevant errors
2018-06-09 14:22:32 +05:30
Adhityaa
2e64c95b7c
smtp_templates.go: add reset-hex
2018-06-09 14:11:53 +05:30
Adhityaa
c208e3392b
config_test.go: add test for no ORIGIN
2018-06-09 14:11:53 +05:30
Adhityaa
37e772b595
api: use Errorf instead of Fatalf
2018-06-09 14:11:53 +05:30
Adhityaa
432ffeebb3
api: add COMMENTO_STATIC environment variable
...
Closes https://gitlab.com/commento/commento-ce/issues/2
2018-06-09 14:11:31 +05:30
Pierre-Alain TORET
e88d027239
Makefile: use go get to pull the dependencies
...
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
2018-06-08 12:26:54 +02:00
Adhityaa
6f3ed40b39
api: use localhost instead of 0.0.0.0
2018-06-08 00:39:45 +05:30
Adhityaa
73647421fb
testing.go: use COMMENTO_POSTGRES if set
2018-06-08 00:39:45 +05:30
Adhityaa
3252c30dd9
comment_approve_test.go: include unapproved listing
2018-06-07 23:19:43 +05:30
Adhityaa
1df933c3c0
config_test.go: use COMMENTO_ prefix
2018-06-07 23:19:43 +05:30
Adhityaa
5a7cffb317
api: fix test since change in commenter API
2018-06-07 23:19:43 +05:30
Adhityaa
e80617d41c
config.go: use a COMMENTO_ prefix
2018-06-07 14:33:15 +05:30
Adhityaa
2723053039
oauth_google_callback.go: use commenterGetByEmail
2018-06-07 13:14:19 +05:30
Adhityaa
a066062f8b
oauth_google_callback.go: use error to detect auth
2018-06-07 13:13:36 +05:30
Adhityaa
36f281ec44
commenter_get.go: add spaces around SQL WHERE
2018-06-07 13:11:33 +05:30
Adhityaa
d75c882882
api: replace commenterIsProviderUser
2018-06-07 13:11:02 +05:30
Adhityaa
2f93726a04
comment_list.go: do not leak state if not mod
2018-06-07 13:10:15 +05:30
Adhityaa
0f2a6a8ccc
api: rename VoteDirection to Direction
2018-06-07 13:09:53 +05:30
Adhityaa
fcf21fd9db
comment.go: include state in JSON response
2018-06-07 13:08:44 +05:30