summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2022-04-02[chore] Update Go version to 1.18 (#444)Libravatar tobi16
* linting with new golangci-lint version * update go to 1.18 * bump versions in drone.yml * use new runtime/debug package for version info * remove Commit build flag from goreleaser * remove mock commit + version from build script * go fmt * add dummy version env flag to test container * install git in golang container for testing * only set versionString if Version is defined
2022-03-29[documentation] Add third-party packaging to documentation (#443)Libravatar tobi3
2022-03-29[feature] Dereference remote mentions when the account is not already known ↵v0.2.2Libravatar tobi16
(#442) * remove mention util function from db * add ParseMentionFunc to gtsmodel * add parseMentionFunc to processor * refactor search to simplify it a bit * add parseMentionFunc to account * add parseMentionFunc to status * some renaming for clarity * test dereference of unknown mentioned account
2022-03-28[feature/security] Add systemd sandboxing options to harden security (#440)Libravatar OniriCorpe1
2022-03-22 [bugfix] Fix media uploads blocking after a failed upload #438 Libravatar tobi1
safer in case of failure
2022-03-21[bugfix] Fix images not being processed correctly sometimes (#437)Libravatar tobi22
* bump exif-terminator to latest version * add and test giant turnip from turnip.farm * don't error if content property is nil
2022-03-21don't error if content property is nil (#436)Libravatar tobi1
2022-03-21[bugfix] Close ReadClosers properly in the media package (#434)Libravatar tobi4
* defer lock reader * close readers when finished with them * close the reader in the teereader when finished
2022-03-19[feature] Admin account actions (#432)Libravatar tobi14
* add accountAction to the admin API * model admin account action * add admin account action to the processor * add migration for new AdminAccountActions table * fix accounts admin path * Update swagger docs
2022-03-15[feature] Federate local account deletion (#431)Libravatar tobi15
* add account delete to API * model account delete request * add AccountDeleteLocal * federate local account deletes * add DeleteLocal * update transport (controller) to allow shortcuts * delete logic + testing * update swagger docs * more tests + fixes
2022-03-15[performance] Add dereference shortcuts to avoid making http calls to self ↵Libravatar tobi7
(#430) * update transport (controller) to allow shortcuts * go fmt * expose underlying sig transport to allow test sigs
2022-03-13[bugfix] Fix bug where admin panel could not be accessed at `/admin` (#427)Libravatar tobi2
* clarify comments * tidy up static serving + add /admin redirect
2022-03-13[bugfix] Fix html-escaped characters in content warnings (#426)Libravatar tobi2
* test status create with odd CWs * use SanitizeCaption for content warning escaping
2022-03-08[dependencies] update go-store, go-mutexes (#422)Libravatar kim13
* update go-store, go-mutexes Signed-off-by: kim <grufwub@gmail.com> * update vendored code Signed-off-by: kim <grufwub@gmail.com>
2022-03-07[performance] Database optimizations (#419)v0.2.1Libravatar tobi5
* create first index on notifications * tidy up + add tests * log queries for trace, ops for debug * index commonly used fields * rearrange query * add a few more indexes * remove schema-breaking index (add this back in later) * re-add cleanup query index
2022-03-07[feature] Clean up/uncache remote media (#407)Libravatar tobi424
* Add whereNotEmptyAndNotNull * Add GetRemoteOlderThanDays * Add GetRemoteOlderThanDays * Add PruneRemote to Manager interface * Start implementing PruneRemote * add new attachment + status to tests * fix up and test GetRemoteOlderThan * fix bad import * PruneRemote: return number pruned * add Cached column to mediaattachment * update + test pruneRemote * update mediaTest * use Cached column * upstep bun to latest version * embed structs in mediaAttachment * migrate mediaAttachment to new format * don't default cached to true * select only remote media * update db dependencies * step bun back to last working version * update pruneRemote to use Cached field * fix storage path of test attachments * add recache logic to manager * fix trimmed aspect ratio * test prune and recache * return errwithcode * tidy up different paths for emoji vs attachment * fix incorrect thumbnail type being stored * expose TransportController to media processor * implement tee-ing recached content * add thoughts of dog to test fedi attachments * test get remote files * add comment on PruneRemote * add postData cleanup to recache * test thumbnail fetching * add incredible diagram * go mod tidy * buffer pipes for recache streaming * test for client stops reading after 1kb * add media-remote-cache-days to config * add cron package * wrap logrus so it's available to cron * start and stop cron jobs gracefully
2022-03-01[documentation] Creates Docker documentation and docker-compose.yaml (#416)Libravatar 0hlov33
* exludes docker-volume from exemple/docker-compose * Adds an docker-compose.yaml example and adds some readme to the docker.md * Changes Docker-Compose Example * Configures docker-compose.yaml and docker.md * Adds some cosmetics to the Documentation * Adds UserID:GroupID * Describes how to create a new user
2022-02-28[packaging] bump to builder 0.0.3 (#418)Libravatar tobi1
2022-02-27bump versions (#417)Libravatar tobi1
2022-02-27[packaging] Use buildx for multi-arch Docker builds (#413)Libravatar tobi4
* update drone to create latest manifest * add .dockerignore file * use buildx for multi-arch builds see https://docs.docker.com/buildx/working-with-buildx/ * don't use RUN commands in Dockerfile this was breaking multi-arch builds
2022-02-27Updates Docker Images (#415)Libravatar 0hlov31
2022-02-26[feature] Add Docker multi architecture Build and make goreleaser push the ↵Libravatar 0hlov31
images and manifests (#410)
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 tobi11
* 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-16Use type=email for email input (#400)Libravatar Shadowfacts1
So that mobile devices with software keyboards use the email keyboard and turn off autocorrect/autocapitalization
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-14[chore] fix mirror + clean up (#396)Libravatar tobi1
2022-02-12Merge pull request #361 from superseriousbusiness/media_refactorv0.2.0Libravatar kim244
Refactor media handler to allow async media resolution
2022-02-12[chore] Add nightly mirror to Codeberg.org (#392)Libravatar tobi1
* add mirror pipeline => codeberg * remove trigger in mirror step * fix file formatting
2022-02-08Go mod tidyLibravatar tsmethurst1
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 tsmethurst2
2022-02-08merge fixupLibravatar tsmethurst4
2022-02-08Merge branch 'main' into media_refactorLibravatar tsmethurst78
2022-02-08update outdated commentLibravatar tsmethurst1
2022-02-08add comment explaining store.lockLibravatar tsmethurst1
2022-02-07[chore] Drone config update (#383)Libravatar tobi3
* go mod tidy * reformat triggers * add drone build status to readme
2022-02-07[feature] add authorization to the already-existing authentication (#365)Libravatar Forest Johnson19
* 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 tobi26
(#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-02-03[docs] Fix documentation to show --config-path in the right position. (#375)Libravatar Phil Hagelberg3
The current position gets rejected as an unknown argument.
2022-02-01Fix start command invocation (#372)Libravatar Paul Woolcock1
When I tried to start the server using the command `./gotosocial server start --config-file ./config.yaml`, I got the following error: ``` root@gotosocial-experiment:/gotosocial# ./gotosocial server start --config-file ./config.yaml Incorrect Usage: flag provided but not defined: -config-file NAME: gotosocial server start - start the gotosocial server USAGE: gotosocial server start [command options] [arguments...] OPTIONS: --help, -h show help (default: false) FATA[0000] flag provided but not defined: -config-file ``` Putting the flag after the `./gotosocial` but before the `server start` seems to work properly
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 Johnson11
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 tobi4
* error when empty address has been set for sqlite * better explain sqlite db-address setting