Commit Graph

235 Commits

Author SHA1 Message Date
Adhityaa Chandrasekar
638f7ba197 comment.go: omit state if empty 2019-05-01 20:39:49 -04:00
Adhityaa Chandrasekar
e1effd2a45 comment_list.go: check for moderator status conditionally 2019-05-01 20:39:49 -04:00
Adhityaa Chandrasekar
a9c48a8394 domain_new.go: reject domains with / 2019-05-01 20:39:48 -04:00
Adhityaa Chandrasekar
feeda79923 comment_list.go: refactor SQL statements 2019-05-01 18:45:14 -04:00
Adhityaa Chandrasekar
9d4ed4ca9f sigint.go: close DB connection before exit
Closes https://gitlab.com/commento/commento/issues/88
2019-05-01 18:39:40 -04:00
Adhityaa Chandrasekar
0b37b33530 smtp_configure.go: allow empty username/password
Closes https://gitlab.com/commento/commento/issues/126
2019-05-01 18:34:37 -04:00
Adhityaa Chandrasekar
cac1cfa84a main.go: add cron to auto cleanup SSO tokens 2019-04-20 23:39:09 -04:00
Adhityaa Chandrasekar
6317b384d9 sso: expire tokens after usage 2019-04-20 23:39:08 -04:00
Adhityaa Chandrasekar
e46f9cf9e7 version.go, footer.html: display version
Closes https://gitlab.com/commento/commento/issues/122
2019-04-20 21:10:08 -04:00
Adhityaa Chandrasekar
1d1cd46c2b frontend, api, db: add single sign-on
Closes https://gitlab.com/commento/commento/issues/90
2019-04-20 21:10:07 -04:00
Adhityaa Chandrasekar
a455ff54bc frontend, api: allow disabling login methods individually 2019-04-19 19:03:34 -04:00
Adhityaa Chandrasekar
9607c15c2b frontend, api: add ability to clear comments 2019-04-13 21:02:40 -04:00
Adhityaa Chandrasekar
5f1d46c7b2 comment_count_test.go: use array of strings 2019-03-10 09:23:34 -04:00
Adhityaa Chandrasekar
a2c8a73d3e utils_html.go: return empty string if title is empty 2019-03-10 09:23:24 -04:00
Adhityaa Chandrasekar
15b1640f89 count.js: add comment count display JS 2019-03-02 15:14:42 -05:00
Adhityaa Chandrasekar
b9bf9e360a oauth.go: re-arrange oauth providers 2019-02-23 11:23:41 -05:00
Adhityaa Chandrasekar
789a58bd7a api, frontend: add moderator tag to mods in comments 2019-02-22 22:57:35 -05:00
Adhityaa Chandrasekar
c30da607cb oauth_twitter_callback.go: add better error handling 2019-02-22 22:27:53 -05:00
Adhityaa Chandrasekar
d4b466b04f api: mirror user photos for better privacy 2019-02-22 22:23:27 -05:00
Adhityaa Chandrasekar
95093326e0 oauth_github_callback.go: add better error handling 2019-02-22 22:23:27 -05:00
Adhityaa Chandrasekar
3e5c1c2656 oauth: add gitlab 2019-02-22 22:23:27 -05:00
Adhityaa Chandrasekar
c07f3e8b9f oauth: add twitter 2019-02-22 22:23:26 -05:00
Adhityaa Chandrasekar
685f3a3a58 router_static.go: add charset for html content 2019-02-20 11:07:29 -05:00
Adhityaa Chandrasekar
e0f188909f release: v1.6.2 2019-02-19 00:12:28 -05:00
Adhityaa Chandrasekar
0b78e9e70c owner_reset_password.go: use ownerHex in SELECT 2019-02-19 00:11:26 -05:00
Adhityaa Chandrasekar
ca797cd165 release: v1.6.1 2019-02-18 18:36:17 -05:00
Adhityaa Chandrasekar
b21c630208 release: v1.6.0 2019-02-18 17:40:22 -05:00
Adhityaa Chandrasekar
ef68dadcd7 email_moderate.go: include email in error message 2019-02-18 17:40:22 -05:00
Adhityaa Chandrasekar
8a7348ed6a email.go: run go fmt 2019-02-18 17:38:58 -05:00
Adhityaa Chandrasekar
5df5b5f112 fonts: add source sans fonts 2019-02-18 17:34:43 -05:00
Adhityaa Chandrasekar
c9677385f8 commenter_self.go: include email details 2019-02-18 17:34:43 -05:00
Adhityaa Chandrasekar
63c4da0b8d api: add email moderation 2019-02-18 17:34:43 -05:00
Adhityaa Chandrasekar
e1c94ecf15 api,frontend: add unsubscribe 2019-02-18 17:34:43 -05:00
Adhityaa Chandrasekar
06f0f6f014 everywhere: add email notifications 2019-02-18 17:34:43 -05:00
Adhityaa Chandrasekar
52ce1e2660 comment_new.go: enforce RequireIdentification when anonymous
Yikes, I can't believe I forgot about this.
2019-02-18 17:34:43 -05:00
Adhityaa Chandrasekar
7fc3910009 comment_new.go: use RequireModeration in anonymous clause 2019-02-18 17:34:43 -05:00
Adhityaa Chandrasekar
a22b49a112 commenter_get.go: add TODO comment 2019-02-18 17:34:43 -05:00
Adhityaa Chandrasekar
0acdd67e39 commenter_login.go: include commenter struct in response 2019-02-18 17:33:44 -05:00
Adhityaa Chandrasekar
e434f59f9a release: v1.5.0 2019-02-04 18:11:03 -05:00
Adhityaa Chandrasekar
a4fbf67d73 api: run go fmt 2019-02-04 18:11:03 -05:00
Adhityaa Chandrasekar
20b6660fa9 domain_import_disqus.go: update disqus export spec 2019-02-04 18:05:51 -05:00
Adhityaa Chandrasekar
6caa3e312c cron_domain_export_cleanup.go: change cron period 2019-01-31 02:19:47 -05:00
Adhityaa Chandrasekar
94829d9b83 api: add cron job to clean up views table 2019-01-31 02:19:12 -05:00
Adhityaa Chandrasekar
7be22b091f domain_export.go: raise error if SMTP is not configured 2019-01-31 02:08:13 -05:00
Adhityaa Chandrasekar
fff5e5c0e1 everywhere: add option to export data 2019-01-31 02:06:11 -05:00
Adhityaa Chandrasekar
f846935a2a comment_new.go, commento.js: don't refresh when creating comments 2019-01-30 22:19:16 -05:00
Adhityaa Chandrasekar
514535a607 oauth_google_callback.go: fix potential nil panic 2019-01-30 21:25:09 -05:00
Adhityaa Chandrasekar
55f24b2de2 api: add github oauth
Closes https://gitlab.com/commento/commento/issues/20
2019-01-30 21:22:46 -05:00
Adhityaa Chandrasekar
00c197e2ee owner_new.go: perform email check before processing 2019-01-24 06:11:37 -05:00
Adhityaa Chandrasekar
3677d43aab templates: use plaintext instead of fancy HTML 2019-01-23 02:52:13 -05:00
Adhityaa Chandrasekar
0cdba65e48 release: v1.4.2 2019-01-23 00:27:55 -05:00
Adhityaa Chandrasekar
022fc06257 everywhere: improve anonymous comments logic 2019-01-23 00:26:25 -05:00
Adhityaa Chandrasekar
e0cf9a89f9 release: v1.4.1 2019-01-16 23:03:32 -05:00
Adhityaa Chandrasekar
02615088ff everywhere: remove -ce suffix 2018-12-28 12:58:01 -05:00
Adhityaa Chandrasekar
5aa3bc86eb release: v1.4.0 2018-12-28 12:18:54 -05:00
Adhityaa Chandrasekar
d5769d56c1 version.go: remove unused import 2018-12-28 12:18:54 -05:00
Adhityaa Chandrasekar
8eb0bc147c router_static.go: go fmt 2018-12-28 12:14:15 -05:00
Adhityaa Chandrasekar
34e39edcda version.go: remove ORIGIN and reduce frequency of logs 2018-12-28 11:47:54 -05:00
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