Commit Graph

104 Commits

Author SHA1 Message Date
Adhityaa Chandrasekar
999ba0c419 dep: add dependency version pinning with dep
Closes https://gitlab.com/commento/commento-ce/issues/69
2018-08-12 23:39:26 +05:30
Adhityaa Chandrasekar
d41e8b0372 owner_confirm_hex.go: fix login redirect typo
I have no idea where the FRONTEND environment variable came from (I
think it's from my original write of Commento v1, which had whole bunch
of different terminologies).

Anyway, the `os.Getenv("FRONTEND")` would basically amount to nothing
all the time, and it would redirect to "/login" irrespective of whether
the user has a subdirectory-based COMMENTO_ORIGIN value.

Closes https://gitlab.com/commento/commento-ce/issues/72
2018-08-12 23:39:26 +05:30
Adhityaa Chandrasekar
5c6ab490c7 config.go: fix CDN_PREFIX sanitisation typo 2018-08-12 23:39:26 +05:30
Adhityaa Chandrasekar
3205766248 config.go: add http prefix to ORIGIN and CDN_PREFIX 2018-08-12 23:39:21 +05:30
JBP
99177a59c3 commenter_new.go: do not return error on empty website
Closes https://gitlab.com/commento/commento-ce/issues/57
2018-08-09 11:09:42 +02:00
Adhityaa Chandrasekar
f3119e28fd confirm-email.html: add file
Closes https://gitlab.com/commento/commento-ce/issues/66
2018-08-08 22:33:02 +05:30
Adhityaa Chandrasekar
6ed44db56b everywhere: allow subdir-ed origin setups
Closes https://gitlab.com/commento/commento-ce/issues/61
2018-08-08 12:42:59 +05:30
Adhityaa Chandrasekar
3ad5128cb9 config.go: trim trailing slash in ORIGIN and CDN_PREFIX
Fixes https://gitlab.com/commento/commento-ce/issues/59
2018-08-08 10:49:14 +05:30
Adhityaa Chandrasekar
afeef81b29 comment_domain_path_get.go: include path in return 2018-07-25 00:04:42 +05:30
Adhityaa Chandrasekar
9fb33fbd9d api: add option to forbid new owner registrations
Closes https://gitlab.com/commento/commento-ce/issues/10
2018-07-24 15:53:41 +05:30
Adhityaa Chandrasekar
c57bc6a39b api: standardise strip fn names 2018-07-24 12:30:45 +05:30
Adhityaa Chandrasekar
a8ecbd9717 api: standardise marshal and unmarshal fn names 2018-07-24 12:28:43 +05:30
Adhityaa Chandrasekar
9974365b73 smtp_configure_test.go: rename cleanSmtpVars 2018-07-24 12:26:19 +05:30
Adhityaa Chandrasekar
44b7abbe5f api: rename performMigrations to migrate 2018-07-24 12:21:59 +05:30
Adhityaa Chandrasekar
58c011030e api: rename connectDB 2018-07-24 12:20:14 +05:30
Adhityaa Chandrasekar
645fad6139 api: rename initStaticRouter 2018-07-24 12:16:34 +05:30
Adhityaa Chandrasekar
14002df4b9 api: rename initAPIRouter 2018-07-24 12:16:02 +05:30
Adhityaa Chandrasekar
6701b4e863 api: rename serveRoutes 2018-07-24 12:15:25 +05:30
Adhityaa Chandrasekar
3c865fd8ff api: rename setupSigintCleanup 2018-07-24 12:14:25 +05:30
Adhityaa Chandrasekar
94f0f68604 api: rename createMarkdownRenderer 2018-07-24 12:13:23 +05:30
Adhityaa Chandrasekar
1f45c04aca api: rename createLogger to loggerCreate 2018-07-24 12:12:03 +05:30
Adhityaa Chandrasekar
b7b224983c config.go: rename parseConfig to configParse 2018-07-24 12:11:01 +05:30
Adhityaa
781aeca6bb api, frontend: use triple square brackets for templating 2018-06-22 19:50:22 +05:30
Adhityaa
584698df94 everywhere: use common html to generate footer 2018-06-22 19:50:22 +05:30
Adhityaa
c1c2a19842 utils_misc.go: print error on fatal exit 2018-06-22 19:50:20 +05:30
Adhityaa
f158e7e62c config_file_test.go: add tests 2018-06-21 21:17:13 +05:30
Adhityaa
39940c9f6b api: config files have lower precedence than envvars 2018-06-21 21:08:28 +05:30
Adhityaa
bb24f62b9c config_file.go: return error if config is invalid 2018-06-21 21:03:35 +05:30
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