Adhityaa Chandrasekar
6d00a8e3aa
frontend,api: refactor static router
2018-12-24 21:49:53 -05:00
Adhityaa Chandrasekar
06c71f4e65
frontend: use commento namespace, event handlers, UI
2018-12-20 00:50:00 -05:00
Adhityaa Chandrasekar
9fcf67d667
api,frontend: add Akismet spam flagging integration
2018-12-19 22:57:02 -05:00
Adhityaa Chandrasekar
610b61831d
frontend,api: open source comment sticky
2018-12-18 18:57:32 -05:00
Adhityaa Chandrasekar
cf0b394b05
release: v1.3.1
2018-10-18 02:17:52 -04:00
Adhityaa Chandrasekar
a36b11f07d
api: use dep instead of go get
2018-10-18 02:17:51 -04:00
Adhityaa Chandrasekar
93c9ce0cad
release: v1.3.0
2018-10-18 01:05:01 -04:00
Adhityaa Chandrasekar
af88db42b2
owner_get.go: fix incorrent owner session selection field
2018-10-18 01:03:12 -04:00
Adhityaa Chandrasekar
0c6ccdc0a1
domain_delete.go: delete entries from pages on domain delete
2018-10-08 02:34:06 -04:00
Adhityaa Chandrasekar
6d3f8171e5
release: v1.2.0
2018-10-07 23:14:55 -04:00
Adhityaa Chandrasekar
41a5c675bf
release: v1.1.3
2018-09-28 09:39:38 -04:00
Adhityaa Chandrasekar
36d57914b2
release: v1.1.2
2018-09-27 17:13:05 -04:00
Adhityaa Chandrasekar
a793f7b3b4
release: v1.1.1
2018-09-26 04:01:11 -04:00
Adhityaa Chandrasekar
c5d2e17615
release: v1.1.0
2018-09-26 03:23:24 -04:00
Adhityaa Chandrasekar
93595f3877
router_static.go: do multiple rounds of templating
2018-09-26 03:18:36 -04:00
Adhityaa Chandrasekar
8ebc0cd965
api: run go fmt
2018-09-23 01:12:52 -04:00
Adhityaa Chandrasekar
988a9fb1a1
router_api.go: expose /api/comment/count endpoint
2018-09-23 00:42:16 -04:00
Adhityaa Chandrasekar
283a32e2bb
comment_list.go: allow empty path on new comments
2018-09-23 00:41:02 -04:00
Adhityaa Chandrasekar
330131f390
api,db: add comments count endpoint
...
Closes https://gitlab.com/commento/commento-ce/issues/27
2018-09-23 00:40:10 -04:00
Adhityaa
299649cea2
api,db: add page attributes and thread locking
2018-09-23 00:26:37 -04:00
Adhityaa Chandrasekar
0a03a2c6fc
api/Makefile: use verbose when getting deps
2018-09-22 17:14:03 -04:00
Adhityaa Chandrasekar
03e0b11e4e
api: add version checking
2018-08-17 00:22:40 +05:30
Adhityaa Chandrasekar
9f14a9389c
api: add MAX_IDLE_PG_CONNECTIONS config variable
...
This allows lib/pq to maintain that many idle connections to the
PostgreSQL server. The larger the number the better, but obviously, your
machine needs to be capable to maintain that many connections.
Closes https://gitlab.com/commento/commento-ce/issues/76
2018-08-17 00:22:38 +05:30
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
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
Adhityaa
d85c136f1d
comment_delete.go: fix isDomainModerator args
2018-06-07 13:05:52 +05:30
Adhityaa
2a44e83989
comment_approve.go: fix isDomainModerator args
2018-06-07 12:59:39 +05:30
Adhityaa
85a6d1ec95
oauth_google.go: fix env variable
2018-06-06 22:51:59 +05:30
Adhityaa
16e3c926fe
commenter_get.go: ret error on non-existant user
2018-06-06 22:51:36 +05:30
Adhityaa
d4f617a703
frontend: prefix cdn and origin with commento
2018-06-05 15:31:16 +05:30
Adhityaa
ee65be7bac
frontend: add logout
2018-06-05 14:23:32 +05:30
Adhityaa
5b7b97a4bf
api: add statistics endpoint
2018-06-03 21:35:44 +05:30
Adhityaa
13eca3c78a
domain_delete: delete moderator data
2018-06-03 21:35:25 +05:30
Adhityaa
79f39f8094
router_static.go: inject CDN_PREFIX in JS files
2018-06-03 20:48:29 +05:30
Adhityaa
02f134932f
domain_moderator_delete.go: fix fn param order
2018-06-03 20:47:58 +05:30
Adhityaa
08783df363
config.go: Set CDN_PREFIX to ORIGIN if empty
2018-06-03 20:47:31 +05:30
Adhityaa
efb23778b8
router_static.go: set Content-Type header
2018-06-03 20:19:46 +05:30
Adhityaa
7e9713b35e
router_static.go: use a prefix variable
2018-06-03 20:18:50 +05:30
Adhityaa
dec05be7f8
domain_new: create domains with ownerHex
2018-06-03 20:14:11 +05:30
Adhityaa
c5b29bbfe1
router_static.go: inject origin instead of api
2018-06-03 17:27:42 +05:30
Adhityaa
2d6ce008c6
owner_new: return whether to confirm email
2018-06-03 17:27:22 +05:30
Adhityaa
31d965bf12
router_static.go: redirect / to login
2018-06-03 17:09:49 +05:30
Adhityaa
a565f34842
router_static.go: use a common path string
2018-06-03 16:42:37 +05:30
Adhityaa
03f075e75a
router_static.go: prefix JS with Origin
2018-06-03 16:42:05 +05:30
Adhityaa
e0f9679694
router_static.go: use different template delims
...
Vue.js uses the same template system {{variable}}, and that clashes
with Go's default delimiters for templates.
2018-06-03 14:03:47 +05:30
Adhityaa
72ab137f06
api: handle SIGINT gracefully
2018-06-03 14:03:24 +05:30
Adhityaa
a090770b73
api: Add go files
...
I know this is a huge commit, but I can't be bothered to check
this in part by part.
2018-05-27 23:40:46 +05:30
Adhityaa
db376eb124
Makefile: use consistent build structure
2018-05-27 23:40:46 +05:30
Adhityaa
1ceac9bbf3
api: add Makefile
2018-05-27 23:40:46 +05:30
Adhityaa
050ec10b36
.gitignore: use a root gitignore
2018-05-27 23:40:46 +05:30
Adhityaa
795456eba1
.gitignore: add build
2018-05-27 23:40:46 +05:30