summaryrefslogtreecommitdiff
path: root/internal
AgeCommit message (Collapse)AuthorFiles
2021-11-22Fix incorrect target being used in CC prop for mentioning statuses (#322)Libravatar tobi2
* hardcode time on admin_account_status_3 * add test for as status with mention * fix incorrect target URI being used for mentions
2021-11-22Fix image description unnecessarily html-escaping innocent characters (#321)Libravatar tobi9
* implement SanitizeCaption function * tidy up text test setup
2021-11-22add bindAddress configuration option (#320)Libravatar tobi3
* add bindAddress configuration option * clarify that bindAddress can be a hostname
2021-11-22properly initialize user client module (#319)Libravatar tobi2
2021-11-22Enable stricter linting with golangci-lint (#316)Libravatar tobi42
* update golangci-lint * add golangci config file w/ more linters * correct issues flagged by stricter linters * add more generous timeout for golangci-lint * add some style + formatting guidelines * move timeout to config file * go fmt
2021-11-21tidy up database creation logic a bit (#317)Libravatar tobi1
2021-11-17fix broken GetInstanceAccount selector (#311)Libravatar tobi2
* fix broken GetInstanceAccount selector * patch tests
2021-11-17Fix instance account not being created (#310)Libravatar tobi2
* Rework 'CreateInstanceAccount' with better checking logic * add test for create instance account
2021-11-13First db migration (#297)Libravatar tobi28
* store first db schema * md linting *screams*
2021-11-13move to ssb gofed fork (#298)Libravatar tobi57
2021-11-13update dependencies (#296)Libravatar tobi16
2021-10-31smtp + email confirmation (#285)Libravatar tobi47
* add smtp configuration * add email confirm + reset templates * add email sender to testrig * flesh out the email sender interface * go fmt * golint * update from field with more clarity * tidy up the email formatting * fix tests * add email sender to processor * tidy client api processing a bit * further tidying in fromClientAPI * pin new account to user * send msg to processor on new account creation * generate confirm email uri * remove emailer from account processor again * add processCreateAccountFromClientAPI * move emailer accountprocessor => userprocessor * add email sender to user processor * SendConfirmEmail function * add noop email sender * use noop email sender in tests * only assemble message if callback is not nil * use noop email sender if no smtp host is defined * minify email html before sending * fix wrong email address * email confirm test * fmt * serve web hndler * add email confirm handler * init test log properly on testrig * log emails that *would* have been sent * go fmt ./... * unexport confirm email handler * updatedAt * test confirm email function * don't allow tokens older than 7 days * change error message a bit * add basic smtp docs * add a few more snippets * typo * add email sender to outbox tests * don't use dutch wikipedia link * don't minify email html
2021-10-24Serve `outbox` for Actor (#289)Libravatar tobi36
* add statusesvisible convenience function * add minID + onlyPublic to account statuses get * move swagger collection stuff to common * start working on Outbox GETting * move functions into federationProcessor * outboxToASCollection * add statusesvisible convenience function * add minID + onlyPublic to account statuses get * move swagger collection stuff to common * start working on Outbox GETting * move functions into federationProcessor * outboxToASCollection * bit more work on outbox paging * wrapNoteInCreate function * test + hook up the processor functions * don't do prev + next links on empty reply * test get outbox through api * don't fail on no status entries * add outbox implementation doc * typo
2021-10-17fix mention extracting when no domain exists (usually intra-instance ↵Libravatar kim4
mentions) (#272) * fix mention extracting when no domain exists (usually when intra-instance mentions) Signed-off-by: kim <grufwub@gmail.com> * fix search logic to match new mention matching logic Signed-off-by: kim <grufwub@gmail.com> * appease the linter :p Signed-off-by: kim <grufwub@gmail.com>
2021-10-16Follow request improvements (#282)Libravatar tobi22
* 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-14User password change (#280)Libravatar tobi11
* 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-13go fmt (#278)Libravatar tobi5
2021-10-11reference global logrus (#274)Libravatar R. Aidan Campbell198
* 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-10Handle forwarded messages (#273)Libravatar tobi17
* 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-06Derive visibility fixes (#271)Libravatar tobi9
* use pub public const * don't error on no summary * move extract visibility to separate function * extract visibility test * add addressable interface
2021-10-04fix logs not working properly (#264)Libravatar tobi6
2021-10-04Refactor/tidy (#261)Libravatar tobi122
* 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-01Follow request auto approval (#259)Libravatar tobi5
* start messing about * fiddle more * Tests & fiddling
2021-10-01rework mention replacement func (#258)Libravatar tobi2
2021-09-30don't catch mentions within links (#257)Libravatar tobi2
2021-09-30allow dereferencing of groups (#256)Libravatar tobi3
2021-09-30Golint (#255)Libravatar tobi6
2021-09-30handle remote account deletion more systematically (#254)Libravatar tobi7
2021-09-28skip account on error instead of returning error (#251)Libravatar tobi2
* skip account on error instead of returning error * still return error on a real error
2021-09-28Account update issue (#250)Libravatar tobi5
* start poking around * tests * notes and fiddling
2021-09-27Weird notif issue (#248)Libravatar tobi4
* start working on weird issue * go fmt ./... * more tests
2021-09-24Unblock fix (#247)Libravatar tobi14
* start tests for inbox posts * go mod tidy * rename transferContext * test block/unblock * improve logging * improve logging * fix comment typo
2021-09-23update media processing (#244)Libravatar tobi8
2021-09-21remove hardcoded friendica user agent block (#239)Libravatar tobi1
2021-09-20tweak db settings slightly (#238)Libravatar tobi1
2021-09-20use timestamptz instead of timestamp (#237)Libravatar tobi21
2021-09-20Update webfingering a little, add tests (#236)Libravatar tobi9
* Update webfingering a little, add tests * fix broken tests oops
2021-09-16federated authentication better logging + tidying (#232)Libravatar tobi13
* change trace logging in authenticator * messing about * lil changes * go fmt * error fix * Fix broken test
2021-09-14Fix mentions not notifying (#230)Libravatar tobi16
* set default privacy for new accounts * teshts * found it * tiny change * aaaa
2021-09-13set default privacy for new accounts (#225)Libravatar tobi1
2021-09-13Thread views on the web (#207)Libravatar f0x523
* Webviews for status threads * fix up templates * add ForkAwesome and gotosocial-styling into repo * clean up gotosocial-styling, old styling * update CONTRIBUTING with new css building, and nodemon recommendation * update Dockerfile with new css bundling * those weren't supposed to make it in * upgrade gotosocial-styling deps * update authorize template with main wrapper * update css pipeline * abstract status from thread to avoid copy-pasting * basic CW implementation * fix PR review suggestions * fix no-image-desc icon alignment * remove template loading println * remove println * remove changes to testmodels * reset changes to testmodels
2021-09-11fix keys used to access storage itemsLibravatar kim (grufwub)3
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-11rename KVStore uses as storage to differentiate between upcoming store packageLibravatar kim (grufwub)9
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-11add git.iim.gay/grufwub/go-store for storage backend, replacing blob.StorageLibravatar kim (grufwub)20
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-11only store statuses in the AS cache, not accounts (#210)Libravatar tobi1
2021-09-11kim is a reply guy (#208)Libravatar tobi19
* bun debug * bun trace logging hooks * more tests * fix up some stuffffff * drop the frontend cache until a proper fix is made * go fmt
2021-09-10fixes + db changes (#204)Libravatar tobi16
* fixes + db changes * make duration more lenient
2021-09-10remove boosted statuses from public (federated timeline) (#201)Libravatar kim1
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-10Prune unnecessary nullzeros, fixup db tags (#200)Libravatar kim12
* prune gtsmodel.Account bun tags, add note to gtsmodel dir Signed-off-by: kim (grufwub) <grufwub@gmail.com> * further database tag fixes Signed-off-by: kim (grufwub) <grufwub@gmail.com> * more db tag fixups Signed-off-by: kim (grufwub) <grufwub@gmail.com> * fix removing nullzero for account timestamps... Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add nullzero back to accountid tag Signed-off-by: kim (grufwub) <grufwub@gmail.com> * rename gtsmodel readme Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-10fix up status inreplyto visibility, + small format improvements (#199)Libravatar kim1
Signed-off-by: kim (grufwub) <grufwub@gmail.com>