Commit graph

324 commits

Author SHA1 Message Date
tsmethurst
6ee46db3de log emails that *would* have been sent 2021-10-18 14:44:52 +02:00
tsmethurst
88e27da164 init test log properly on testrig 2021-10-18 14:44:31 +02:00
tsmethurst
652b41d1ce add email confirm handler 2021-10-18 14:44:12 +02:00
tsmethurst
d1c271fc8e serve web hndler 2021-10-18 10:41:33 +02:00
tsmethurst
04059f8fff fmt 2021-10-17 17:46:19 +02:00
tsmethurst
11a53dab92 email confirm test 2021-10-17 17:45:29 +02:00
tsmethurst
4bb1e901c6 fix wrong email address 2021-10-17 17:45:19 +02:00
tsmethurst
d3a80b69f0 minify email html before sending 2021-10-17 17:45:07 +02:00
tsmethurst
42881aa0f1 use noop email sender if no smtp host is defined 2021-10-17 17:07:07 +02:00
tsmethurst
b524b12100 only assemble message if callback is not nil 2021-10-17 17:06:47 +02:00
tsmethurst
8fdb3256e5 use noop email sender in tests 2021-10-17 16:59:57 +02:00
tsmethurst
b0cc815189 add noop email sender 2021-10-17 16:19:13 +02:00
tsmethurst
a455c0186f SendConfirmEmail function 2021-10-17 15:25:20 +02:00
tsmethurst
55b643cc02 add email sender to user processor 2021-10-17 15:25:08 +02:00
tsmethurst
49a5e481e0 move emailer accountprocessor => userprocessor 2021-10-17 15:24:47 +02:00
tsmethurst
a558cb1dda add processCreateAccountFromClientAPI 2021-10-17 15:24:20 +02:00
tsmethurst
0fee68f5fe remove emailer from account processor again 2021-10-17 15:23:53 +02:00
tsmethurst
1cc9742d63 generate confirm email uri 2021-10-17 14:58:48 +02:00
tsmethurst
212fd84cfe send msg to processor on new account creation 2021-10-17 14:38:32 +02:00
tsmethurst
556ac3da81 pin new account to user 2021-10-17 14:38:19 +02:00
tsmethurst
784b648c33 further tidying in fromClientAPI 2021-10-17 14:27:52 +02:00
tsmethurst
ec4b3c9e4f tidy client api processing a bit 2021-10-17 14:07:07 +02:00
tsmethurst
5f6a0cd8cf add email sender to processor 2021-10-17 10:50:57 +02:00
tsmethurst
2ca332250b fix tests 2021-10-16 18:42:20 +02:00
tsmethurst
2eda7f4846 tidy up the email formatting 2021-10-16 18:41:36 +02:00
tsmethurst
f253fce5f1 update from field with more clarity 2021-10-16 18:29:00 +02:00
tsmethurst
bf6da319f2 golint 2021-10-16 17:48:40 +02:00
tsmethurst
ba1c49b7f9 go fmt 2021-10-16 17:47:43 +02:00
tsmethurst
c868cc3e65 flesh out the email sender interface 2021-10-16 17:47:13 +02:00
tsmethurst
3b31e558ab add email sender to testrig 2021-10-16 17:45:54 +02:00
tsmethurst
f53bbfdb77 add email confirm + reset templates 2021-10-16 17:45:38 +02:00
tsmethurst
2cb8a3ba76 add smtp configuration 2021-10-16 17:14:58 +02:00
tobi
15621f5324
Follow request improvements (#282)
* tiny doc update

* add rejectfollowrequest to db

* add follow request reject to processor

* add reject handler

* tidy up follow request api

* tidy up federation call

* regenerate swagger docs

* api endpoint tests

* processor test

* add reject federatingdb handler

* start writing reject tests

* test reject follow request

* go fmt

* increase sleep for slow test setups

* more relaxed time.sleep
2021-10-16 13:27:43 +02:00
tobi
107685e22e
User password change (#280)
* start passwordChangeHandler

* add user scope

* add user module / api path

* add password change request

* make comment clearer

* add user to processor

* required true

* add processor call to handler

* don't pass tc or channel

* change password func + tests

* add some first docs about password management

* update swagger docs

* add api tests

* go fmt

* test fixes
2021-10-14 14:26:04 +02:00
tobi
a07e62e49e
go fmt (#278) 2021-10-13 13:50:24 +02:00
tobi
27605f7c47
add new logo + credits (#277) 2021-10-13 13:19:10 +02:00
R. Aidan Campbell
083099a957
reference global logrus (#274)
* reference logrus' global logger instead of passing and storing a logger reference everywhere

* always directly use global logrus logger instead of referencing an instance

* test suites should also directly use the global logrus logger

* rename gin logging function to clarify that it's middleware

* correct comments which erroneously referenced removed logger parameter

* setting log level for tests now uses logrus' exported type instead of the string value, to guarantee error isn't possible
2021-10-11 14:37:33 +02:00
tobi
367bdca250
Handle forwarded messages (#273)
* correct path of foss_satan

* add APIri and notes

* test create forward note

* rename target => receiving account

* split up create into separate funcs

* update extractFromCtx

* tidy up from federator processing

* foss satan => http not https

* check if status in db

* mock dereference of status from IRI

* add forward message deref test

* update test with activities

* add remote_account_2 to test rig
2021-10-10 12:39:25 +02:00
tobi
3dc7644ae6
Derive visibility fixes (#271)
* use pub public const

* don't error on no summary

* move extract visibility to separate function

* extract visibility test

* add addressable interface
2021-10-06 18:18:02 +02:00
tobi
ff77bf1d11
fix logs not working properly (#264) 2021-10-04 16:00:35 +02:00
tobi
e04b187702
Refactor/tidy (#261)
* tidy up streaming

* cut down code duplication

* test get followers/following

* test streaming processor

* fix some test models

* add TimeMustParse

* fix uri / url typo

* make trace logging less verbose

* make logging more consistent

* disable quote on logging

* remove context.Background

* remove many extraneous mastodon references

* regenerate swagger

* don't log query on no rows result

* log latency first for easier reading
2021-10-04 15:24:19 +02:00
tobi
9ce4234b9f
Follow request auto approval (#259)
* start messing about

* fiddle more

* Tests & fiddling
2021-10-01 19:08:50 +02:00
tobi
365c3bf5d7
rework mention replacement func (#258) 2021-10-01 14:10:20 +02:00
tobi
28b6ce59d6
don't catch mentions within links (#257) 2021-09-30 18:11:57 +02:00
tobi
0cd2bd2960
allow dereferencing of groups (#256) 2021-09-30 12:27:42 +02:00
tobi
231075f28d
Golint (#255) 2021-09-30 11:16:23 +02:00
tobi
36a09dd0df
handle remote account deletion more systematically (#254) 2021-09-30 10:56:02 +02:00
tobi
9a53b1a8d1
upstep bun to v1.0.9 (#252) 2021-09-29 15:09:45 +02:00
tobi
08cb8a3385
skip account on error instead of returning error (#251)
* skip account on error instead of returning error

* still return error on a real error
2021-09-28 16:19:13 +02:00
tobi
b5a7e1ba32
Account update issue (#250)
* start poking around

* tests

* notes and fiddling
2021-09-28 15:21:59 +02:00