Commit Graph

238 Commits

Author SHA1 Message Date
Adhityaa Chandrasekar
fc83eed221 comment_new.go: simplify state logic
Signed-off-by: Adhityaa Chandrasekar <adtac@adtac.in>
2021-02-28 13:43:58 +05:30
Adhityaa Chandrasekar
18612933f6 commento.js: show error when comment link is 404
Signed-off-by: Adhityaa Chandrasekar <adtac@adtac.in>
2021-02-28 13:16:36 +05:30
Adhityaa Chandrasekar
aaa44a0bee api: log comment deleter and deletion date
Signed-off-by: Adhityaa Chandrasekar <adtac@adtac.in>
2021-02-28 12:46:43 +05:30
Souradip Mookerjee
5390c6f81c Fix twitter profile photo import bug 2021-01-16 00:26:17 +00:00
Adhityaa Chandrasekar
36204ff81b constants.go: set version at compile time 2020-03-31 06:39:52 -04:00
Adhityaa Chandrasekar
af2626c443 domain_export_download.go: include json in filename 2020-03-31 06:39:52 -04:00
Adhityaa Chandrasekar
20027d0efe domain_export_download.go: do not add gzip encoding header
Adding a gzip encoding header would cause the browser to decode the data
on the client side. When re-importing the data, a plain JSON is imported
instead of a GZIP version.
2020-03-31 06:39:52 -04:00
Adhityaa Chandrasekar
885b4c6689 api: use commentoExportV1 struct 2020-03-31 06:39:52 -04:00
igolaizola
0d929595cc api: import from commento export format
JSON data can be imported to restore previously exported data
or to migrate data from another self-hosted commento instance.

Closes https://gitlab.com/commento/commento/issues/239
2020-03-31 06:39:52 -04:00
atagulalan
d077241f09 Fixed Github OAuth name error 2020-03-19 06:47:05 -04:00
matclab
b57b6bcc12 oauth config: Use GITLAB_URL env variable
In order to use oauth from gitlab CE instance one has to be
able to provide the URL of the instance.

closes #209 (https://gitlab.com/commento/commento/issues/209)
2020-03-19 06:47:05 -04:00
evalphobia
7f323b5abe oauth_twitter_callback.go: fix avatar icon and account url for Twitter 2020-03-19 05:04:29 -04:00
Adhityaa Chandrasekar
55a3d1fd89 api: go fmt 2020-02-13 20:15:05 -05:00
Adhityaa Chandrasekar
986b05f89a api, frontend: restrict profile updates to commento provider 2020-02-13 20:11:47 -05:00
Adhityaa Chandrasekar
b7c214e910 commenter_update.go: parse empty links as undefined 2020-02-13 20:01:44 -05:00
Adhityaa Chandrasekar
ea3419e8b4 commenter_photo.go: resize images to 38px 2020-02-13 20:00:42 -05:00
Adhityaa Chandrasekar
b29147a95b commenter_update.go: make link optional 2020-02-13 19:38:47 -05:00
Adhityaa Chandrasekar
b3f2cf3064 database_connect.go: redact password before log message 2020-02-13 19:12:54 -05:00
Ricky Panzer
bbea9df8b8 commenter_login.go: include email in response
Fixes https://gitlab.com/commento/commento/issues/271
2020-02-13 18:47:58 -05:00
Mariusz Gronczewski
2006b02f59 smtp_configure.go: disable smtp auth when unset 2020-02-13 18:47:58 -05:00
Kaspars
6978171885 fix errorf missing argument 2020-02-03 22:17:41 +02:00
Adhityaa Chandrasekar
dc24a40a37 api, frontend: add account deletion
Closes https://gitlab.com/commento/commento/issues/120
2020-01-02 14:19:44 -08:00
Adhityaa Chandrasekar
80dc91ca05 domain_delete.go: clean up SQL 2020-01-02 14:19:44 -08:00
Adhityaa Chandrasekar
f6d6a1f77f owner_get.go: clean up SQL 2020-01-02 14:19:44 -08:00
Adhityaa Chandrasekar
d6e7507b2c api: sql statements: replace spaces with tabs 2020-01-02 14:19:44 -08:00
Adhityaa Chandrasekar
e7a5e01379 comment_vote.go: clean up SQL 2020-01-02 14:19:44 -08:00
Dave
e0504a0c88 comment_vote.go: fix logger msg typo erorr->error
Closes https://gitlab.com/commento/commento/merge_requests/124
2020-01-02 14:19:44 -08:00
Adhityaa Chandrasekar
6cfa9922de email_get.go: clean up SQL 2020-01-02 14:19:44 -08:00
Adhityaa Chandrasekar
72a3f87c28 domain_get.go, domain_list.go: clean up SQL 2020-01-02 14:19:44 -08:00
Adhityaa Chandrasekar
c94e5ca41f comment_get.go: clean up SQL 2020-01-02 14:19:44 -08:00
Adhityaa Chandrasekar
a05d8eeb07 commenter_get.go: clean up SQL 2020-01-02 14:19:44 -08:00
Adhityaa Chandrasekar
024859ff45 utils_sql.go: add sqlScanner interface 2020-01-02 14:19:44 -08:00
Dave
042fda0e8c commenter_get.go: single query commenterGetByCommenterToken
Closes https://gitlab.com/commento/commento/merge_requests/125
2020-01-02 14:19:41 -08:00
Adhityaa Chandrasekar
2f9368a275 commenter_update.go: allow editing link, photo 2019-12-04 22:48:44 -08:00
Adhityaa Chandrasekar
918a691ba3 api, frontend: allow editing profile information
Closes https://gitlab.com/commento/commento/issues/235
2019-12-04 22:12:29 -08:00
Adhityaa Chandrasekar
3e1576d494 api, frontend, db: add comment sorting
Closes https://gitlab.com/commento/commento/issues/215
2019-12-04 18:50:50 -08:00
Adhityaa Chandrasekar
3101af8a5c utils_sanitise.go: strip protocol before trailer
Fixes https://gitlab.com/commento/commento/issues/176
2019-11-21 01:15:08 -08:00
Adhityaa Chandrasekar
162b11bd7a api: do not batch email notifications
Closes https://gitlab.com/commento/commento/issues/234
2019-10-25 01:10:44 -07:00
Adhityaa Chandrasekar
ee7875cc1e commento.js: don't recursively delete comments 2019-09-13 18:13:38 -07:00
Adhityaa Chandrasekar
b682fd14fa commenter_update.go: run go fmt 2019-09-13 16:15:00 -07:00
Adhityaa Chandrasekar
982a574512 email_notification_new.go: do not return on pageTitleUpdate errors 2019-09-13 16:15:00 -07:00
Adhityaa Chandrasekar
52f8df5183 config.go: parse config file before default
Closes https://gitlab.com/commento/commento/issues/187
2019-09-13 16:14:59 -07:00
Adhityaa Chandrasekar
9538c9036e api: update commenter information on new login 2019-08-21 21:05:17 -07:00
Adhityaa Chandrasekar
62340eb9c6 comment_new.go: create page before inserting comment
Fixes https://gitlab.com/commento/commento/issues/173
2019-07-25 18:25:08 -07:00
Adhityaa Chandrasekar
73234832b6 api: vendor deps before tests 2019-06-06 01:44:17 -07:00
Adhityaa Chandrasekar
85456a019e api,frontend: add commenter password resets 2019-06-06 01:33:31 -07:00
Adhityaa Chandrasekar
bdda465f33 api: use go mod 2019-06-05 21:43:12 -07:00
WGH
6e22d10b02 api/Makefile: remove -i flag to fix cross-compilation
When -i (install) flag is passed to `go build`, it attempts
to install dependencies of the target.

This will usually fail during cross-compilation due to GOROOT being
not writeable to non-root users:

    runtime/internal/sys
    go build runtime/internal/sys: mkdir /usr/lib/go/pkg/linux_arm: permission denied

Installing dependencies makes no sense in recent Go versions,
because compilation is cached anyway (see `go help cache`).
2019-06-05 20:45:03 -07:00
Adhityaa Chandrasekar
48bbceabc8 comment_get.go: run go fmt 2019-05-15 11:46:11 -07:00
Adhityaa Chandrasekar
cc1dfee017 api, frontend: add comment editing 2019-05-15 10:46:51 -07:00