summaryrefslogtreecommitdiff
path: root/internal
AgeCommit message (Collapse)AuthorFiles
2022-02-22[feature] Add postDataCallbackFunc to allow cleanup (#408)Libravatar tobi10
2022-02-21[bugfix] Fix thumbnail image type (#406)Libravatar tobi3
* fix thumbnail content-type * test fix thumbnail content-type
2022-02-19[feature] Gin enable gzip encoding (#405)Libravatar tobi2
* add gin gzip dependency * add gzip middleware to router * go mod tidy
2022-02-19[feature] Stream files via reader (#404)Libravatar tobi3
* serve files via reader rather than byte slice * close readcloser when we're done with it * cast reader to readcloser
2022-02-15[bugfix] Only mark cookies as Secure on https (#398)Libravatar Shadowfacts1
Fixes cookies not being stored/sent by Safari when serving over plain http
2022-02-08store and retrieve processState atomicallyLibravatar tsmethurst3
2022-02-08hopefully fix potential race conditionLibravatar tsmethurst1
2022-02-08log error on header/avatar fetch failLibravatar tsmethurst2
2022-02-08go fmtLibravatar tsmethurst1
2022-02-08merge fixupLibravatar tsmethurst3
2022-02-08Merge branch 'main' into media_refactorLibravatar tsmethurst54
2022-02-08update outdated commentLibravatar tsmethurst1
2022-02-07[feature] add authorization to the already-existing authentication (#365)Libravatar Forest Johnson14
* add ensureUserIsAuthorizedOrRedirect to /oauth/authorize * adding authorization (email confirm, account approve, etc) to TokenCheck * revert un-needed changes to signin.go * oops what happened here * error css * add account.SuspendedAt check * remove redundant checks from oauth util Authed function * wip tests * tests passing * stop stripping useful information from ErrAlreadyExists * that feeling of scraping the dryer LINT off the screen * oops I didn't mean to get rid of this NewTestRouter function * make tests work with recorder * re-add ConfigureTemplatesWithGin to handle template path err Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
2022-02-06don't bother negotiating Accept for webfinger (#381)Libravatar tobi1
2022-02-06if accountDomain isn't set, use Host value instead (#380)Libravatar tobi2
2022-02-05[feature] Rework timeline code to make it useful for more than just statuses ↵Libravatar tobi23
(#373) * add preparable and timelineable interfaces * initialize timeline manager within the processor * generic renaming * move status-specific timeline logic into the processor * refactor timeline to make it useful for more than statuses
2022-01-31[bug] Fix OIDC users requiring second approval (#371)Libravatar tobi2
* tidy up NewSignup * pre-approve users created via OIDC
2022-01-31[bug] Send plaintext emails to fix "message refused: Message is not RFC 2822 ↵Libravatar Forest Johnson7
compliant" (#366) * trying to fix "message refused: Message is not RFC 2822 compliant" * fix "message refused: Message is not RFC 2822 compliant" 550 5.7.1 Delivery not authorized, message refused: Message is not RFC 2822 compliant * remove silly regex * lint * fix tests * we should use text/template instead of html/template now
2022-01-30[bug] Fix sqlite empty address issue (#370)Libravatar tobi2
* error when empty address has been set for sqlite * better explain sqlite db-address setting
2022-01-30[bug] Fix minimum description length check (#369)Libravatar tobi3
* add/update tests * don't check min description length on media create
2022-01-30[feature] Make Let's Encrypt integration an opt-in feature (#368)Libravatar tobi1
2022-01-29put store lock file in base of storageLibravatar tsmethurst1
2022-01-25ensure blocking calls to getRemoteAccount before showing stuff to clientLibravatar tsmethurst2
2022-01-25fix up some account conversion logicLibravatar tsmethurst3
2022-01-25only update account in db if changedLibravatar tsmethurst1
2022-01-24change getaccount function signatureLibravatar tsmethurst1
2022-01-24ctx => innerctxLibravatar tsmethurst1
2022-01-24use background context w/deadlineLibravatar tsmethurst1
2022-01-24start trying to figure out why this test is failingLibravatar tsmethurst1
2022-01-24test with disk storage as wellLibravatar tsmethurst1
2022-01-24update remote account get/deref logicLibravatar tsmethurst17
2022-01-23add file size checksLibravatar tsmethurst1
2022-01-23rework data function to provide filesizeLibravatar tsmethurst12
2022-01-16pass reader around instead of []byteLibravatar tsmethurst13
2022-01-15lint, fmtLibravatar tsmethurst2
2022-01-15emoji code passing musterLibravatar tsmethurst9
2022-01-15start fixing up emoji processing codeLibravatar tsmethurst8
2022-01-11pin instanceAccountID to in-process emojiLibravatar tsmethurst1
2022-01-11pass a function into the manager, start work on emojiLibravatar tsmethurst19
2022-01-10test the media manager a bit, add shutdown logicLibravatar tsmethurst32
2022-01-09add async testLibravatar tsmethurst1
2022-01-09tests are passing, but there's still much to be doneLibravatar tsmethurst17
2022-01-08compiling nowLibravatar tsmethurst17
2022-01-08further refinementsLibravatar tsmethurst4
2022-01-04start working on thumb + full funcsLibravatar tsmethurst3
2022-01-03return very partial image on first uploadLibravatar tsmethurst5
2022-01-02fiddle around with workersLibravatar tsmethurst7
2021-12-28more refactoring, media handler => managerLibravatar tsmethurst25
2021-12-27start refactor of media packageLibravatar tsmethurst6
2021-12-21[fix] Make postgres connections magically work in common setups (#352)Libravatar embr2
* Don't use the system 'postgres' database by default * Use postgres adapter defaults The pgx code actually goes to great lengths to make postgres connections Just Work(tm) out of the box, including supporting `~/.pg_service.conf`, SSL certificates, UNIX sockets if it can find a socket at a common path, and falling back to TCP to localhost if not. (On Windows, it won't try to use UNIX sockets, but will read credentials from %appdata% as is standard over there.) By applying our flags as overrides only when they're specified, database connections should Just Work(tm) anywhere `psql gotosocial` does.