summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
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 tsmethurst20
2022-01-10test the media manager a bit, add shutdown logicLibravatar tsmethurst37
2022-01-09add async testLibravatar tsmethurst1
2022-01-09tests are passing, but there's still much to be doneLibravatar tsmethurst18
2022-01-08compiling nowLibravatar tsmethurst18
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-03add gruf worker poolLibravatar tsmethurst9
2022-01-02fiddle around with workersLibravatar tsmethurst7
2021-12-28more refactoring, media handler => managerLibravatar tsmethurst29
2021-12-27start refactor of media packageLibravatar tsmethurst6
2021-12-26[documentation] Add section for systemd service and nginx to installation ↵Libravatar zoe-bat3
guide (#353) * add nginx and systemd section * fix typso * fix mkdoc and dots in config guide * specify port * Update nginx.md * add section about configuring gts to nginx docs * Update nginx.md Co-authored-by: zoe <z8V54gHftevp7LeRVyys$8@DosKq^FeQKUWU!WGpTyiLaxGojNdgnWkaWiv673Twg$aPm&hU>
2021-12-21[documentation] update database docs (#355)Libravatar tobi2
* update config to new db defaults * update database docs
2021-12-21[fix] Make postgres connections magically work in common setups (#352)Libravatar embr3
* 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.
2021-12-20Extend license notices to 2022 (#354)Libravatar tobi558
2021-12-20Remove unnecessary storage config variables (#344)Libravatar tobi51
* rewire config to not use extraneous serve vars * rename 'file' to 'local' for consistency * use Type and Size again
2021-12-20return first offer when no accept header set (#351)Libravatar tobi1
2021-12-20Update codeberg.org/gruf libraries and fix go-store issue (#347)Libravatar kim15
* update codeberg.org/gruf/ libraries Signed-off-by: kim <grufwub@gmail.com> * another update Signed-off-by: kim <grufwub@gmail.com>
2021-12-20Log when listening (#350)Libravatar embr1
* Log when starting letsencrypt endpoint + clearer errors Running `gotosocial server` with the default configuration will try to bind to :80 and listen for letsencrypt challenges, which will fail if running as non-root (w/o capabilities), or if eg. nginx hogs the port. When that happens, this should make it more obvious what's wrong. * Log what address/port we're listening on Always nice not to have to guess. Also feels more consistent than just doing it for the letsencrypt endpoint.
2021-12-14document post settings (#346)Libravatar tobi1
2021-12-12Add optional syslog logrus hook (#343)Libravatar tobi38
* add optional syslog logrus hook * document syslog
2021-12-12add systemd service example to packaging (#342)Libravatar tobi1
2021-12-12add example systemd service (#341)Libravatar zoe-bat1
2021-12-12Upstep Go dependencies (#340)Libravatar tobi160
* Upstep Go dependencies * tiny linter fix * Tidy
2021-12-12upstep dependencies (#339)Libravatar tobi1
2021-12-11Add `Accept` header negotiation to relevant API endpoints (#337)Libravatar tobi78
* start centralizing negotiation logic for API * swagger document nodeinfo endpoint * go fmt * document negotiate function * use content negotiation * tidy up negotiation logic * negotiate content throughout client api * swagger * remove attachment on Content * add accept header to test requests
2021-12-07Implement Cobra CLI tooling, Viper config tooling (#336)Libravatar tobi487
* start pulling out + replacing urfave and config * replace many many instances of config * move more stuff => viper * properly remove urfave * move some flags to root command * add testrig commands to root * alias config file keys * start adding cli parsing tests * reorder viper init * remove config path alias * fmt * change config file keys to non-nested * we're more or less in business now * tidy up the common func * go fmt * get tests passing again * add note about the cliparsing tests * reorganize * update docs with changes * structure cmd dir better * rename + move some files around * fix dangling comma
2021-11-27Update dependencies (#333)Libravatar tobi848
2021-11-27Require confirmed email when checking oauth token (#332)Libravatar tobi8
* move token checker to security package * update tests with new security package * add oauth token checking to security package * check if user email confirmed when parsing token
2021-11-27run sqlite tests in parallel (#331)Libravatar tobi3
2021-11-24Fix broken defaults and broken flags (#314)v0.1.1Libravatar Forest Johnson9
* start with a default config, not an empty config. * some data structures were present on Empty config but not Default config * the monkey patched CLIContext is working * remove print debugging log * make the behaviour of the flags consistent across all data types Conflicts: internal/config/config.go * try to fix accidentally broken test
2021-11-22Fix streamed messages ending up in wrong timeline(s) (#325)Libravatar tobi10
* define timeline consts * remove double stream of status * change test stream creation up a bit * stream messages more selectively * add test for streaming new status creation via clientAPI * tidy code + comments a bit * tidy up tests * make sure new status isn't streamed to public
2021-11-22Use IPv6 doc prefix for docs (#324)Libravatar Mara Sophie Grosch3
IPv6 has a dedicated prefix for documentation and examples, this commit makes use of it for BindAddress config flag docs and examples.
2021-11-22Fix mentioned accounts visibility bug (#323)Libravatar tobi8
* update other tests * set test status to followers_only * add test dm * fix mentioned accounts not being added to relevantAccounts * add some visibility tests for statuses
2021-11-22Fix incorrect target being used in CC prop for mentioning statuses (#322)Libravatar tobi3
* 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 tobi6
* 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 tobi47
* 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-14Update docs with better config + installation instructions (#300)Libravatar tobi21
* start reworking some documentation * fuller documentation + better docs structure
2021-11-13update drone file (#299)v0.1.0Libravatar tobi1
2021-11-13First db migration (#297)Libravatar tobi28
* store first db schema * md linting *screams*
2021-11-13move to ssb gofed fork (#298)Libravatar tobi799