mirror of
1
Fork 0
Commit Graph

689 Commits

Author SHA1 Message Date
f0x 397165b5ed federation blocks 2022-09-18 19:21:26 +02:00
f0x 80c05825ab federation block routing 2022-09-18 19:21:26 +02:00
f0x 9fbe8f5cfd admin-status based routing 2022-09-18 19:21:26 +02:00
f0x 02ac28e832 only do API checks on logged-in state 2022-09-18 19:21:26 +02:00
f0x fac0e28afb refactor/cleanup forms 2022-09-18 19:21:26 +02:00
f0x 98b4301d52 add top-level redirect 2022-09-18 19:21:26 +02:00
f0x fed168af4c remove old/admin files 2022-09-18 19:21:26 +02:00
f0x 8c1f05159e admin settings panel 2022-09-18 19:21:26 +02:00
f0x a84971af84 admin panel settings 2022-09-18 19:21:26 +02:00
f0x 3ab2de4db2 start on admin pages 2022-09-18 19:21:26 +02:00
f0x cb137589a0 restructure form fields 2022-09-18 19:21:25 +02:00
f0x b01267de17 remove unneeded wrapper components 2022-09-18 19:21:25 +02:00
f0x 0a4b1f79de customize profile css 2022-09-18 19:21:25 +02:00
f0x ca25d4c570 support future api for removing files 2022-09-18 19:21:25 +02:00
f0x d6be0bfa84 remove debug logging 2022-09-18 19:21:25 +02:00
f0x fa5e65b640 implement password change 2022-09-18 19:21:25 +02:00
f0x 43f2e988b9 implement old/user/profile.js 2022-09-18 19:21:25 +02:00
f0x 10faf67b51 delete old/index.js, old/basic.js, fully implemented 2022-09-18 19:21:25 +02:00
f0x 2bd18790cf use redux state for profile form 2022-09-18 19:21:25 +02:00
f0x 3ce9dfe7d6 fix keeping track of the wrong instance url (for different instance/api domains) 2022-09-18 19:21:25 +02:00
f0x 8474dd434a profile overview 2022-09-18 19:21:25 +02:00
f0x 4eee86d2ed move old dir 2022-09-18 19:21:25 +02:00
f0x 87fb2307d4 basic profile change submission 2022-09-18 19:21:25 +02:00
f0x 6d719874fa oauth api revocation handling 2022-09-18 19:21:25 +02:00
f0x dc1d536c35 split oauth api functions 2022-09-18 19:21:25 +02:00
f0x 5f80099eee full redux oauth implementation, with basic error handling 2022-09-18 19:21:25 +02:00
f0x a4bb869d0f login flow up till app registration 2022-09-18 19:21:25 +02:00
f0x cc69e65a72 use .jsx extensions for components 2022-09-18 19:21:25 +02:00
f0x 2576e3b2d6 redux, whitespace changes.. 2022-09-18 19:21:25 +02:00
f0x 8739608434 remove unused consts 2022-09-18 19:21:25 +02:00
f0x c989cd43ac superfluous padding on applist 2022-09-18 19:21:25 +02:00
f0x 4c9d9c924c kebab-case consistency 2022-09-18 19:21:25 +02:00
f0x d00cd0dbfd colorscheme redesign, some other small css tweaks 2022-09-18 19:21:25 +02:00
f0x d0ace4c26a basic router layout, error boundary 2022-09-18 19:21:25 +02:00
f0x 0af6789ef3 colorscheme redesign, some other small css tweaks 2022-09-18 19:21:25 +02:00
f0x 0e46a82b05 clean up old Gin handlers 2022-09-18 19:21:25 +02:00
f0x 8b4a848bc8 settings panel restructuring 2022-09-18 19:21:25 +02:00
tobi c1585d5f8a
[bugfix] Fix domains not being unblockable, log internal server errors from API (#833)
* log internal server errors from 500 api calls

* don't exec into nil dest

* don't exec into nil dest

* log error in router logger not api errorhandling

* update logging a tad

* linter
2022-09-17 19:12:12 +02:00
tobi 1149310673
[bugfix] Fix emojis, attachments, and mentions not being serialized correctly sometimes via AP (#829) 2022-09-15 11:29:05 +02:00
tobi 6a10123790
[docs] Swagger document `/api/v1/custom_emojis` (#824) 2022-09-13 13:30:07 +02:00
tobi 2b34a9b51c
[bug] fix unique constraint conflict (#820) 2022-09-12 13:58:31 +02:00
tobi b42469e4e0
[feature] Allow users to set custom css for their profiles + threads (#808)
* add custom css account property + db func to fetch

* allow account to get/set custom css

* serve custom css for an account

* go fmt

* use monospace for customcss, add link

* add custom css to account cache

* fix broken field

* add custom css docs to user guide

* add `accounts-allow-custom-css` config flag

* add allow custom css to /api/v1/instance response

* only show/set custom css if allowed to do so

* only set/serve custom account css if enabled

* update swagger docs

* chain promise

* make bool a bit clearer

* use cache for GetAccountCustomCSSByUsername
2022-09-12 13:14:29 +02:00
tobi 268f252e0d
[feature] Fetch + display custom emoji in statuses from remote instances (#807)
* start implementing remote emoji fetcher

* update status where pk

* aaa

* tidy up a little

* check size limits for emojis

* thank you linter, i love you <3

* update swagger docs

* add emoji dereference test

* make emoji max sizes configurable

* normalize db.ErrAlreadyExists
2022-09-12 13:03:23 +02:00
tobi 31639c9b80
[docs] unbreak standard css (#818) 2022-09-11 14:35:28 +02:00
tobi 1455c4b5fe
[accessibility] Use higher-contrast for api response examples (#816) 2022-09-11 13:13:22 +02:00
tobi a26280b31a
[bugfix] Fix preposterous characters reserved per URL amount (#809)
* clarify docs

* tidy up consts, set reserved chars much lower

* update tests
2022-09-08 12:36:42 +02:00
f0x52 d09ddb4769
[feature] opengraph meta tags (#806)
* f0x gitignore additions

* better meta title and descriptions

* user avatar icon for thread and profile meta tags

* use proper tag for image

* whitespace

* add noescapeAttr template function

* use ogMeta struct for opengraph

* maxOGDescriptionLength = 300

Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
2022-09-07 16:53:12 +02:00
tobi a872ddebe6
[feature] Custom emoji updates (serve emoji via s2s api, tune db models) (#805)
* migrate emojis

* add get emoji to s2s (federation) API

* add new emoji db + cache functions

* add shortcodeDomain lookup for emojis

* check existing emojis w/cache, not w/constraints

* go fmt

* add putEmoji func

* use new db emoji funcs instead of where

* remove emojistringstotags func

* add unique constraint back in

* fix up broken migration

* update index
2022-09-06 12:42:55 +02:00
tobi ee01e030d4
[bugfix] Catch json syntax errors in the frontend + display a more helpful message (#804)
* catch json syntax errors

* update error msg

* re-throw error with cause

Co-authored-by: f0x52 <f0x@cthu.lu>
2022-09-05 14:24:51 +02:00
tobi 58c00d9f2f
[frontend] Transition neatly from cropped photos (#802) 2022-09-04 15:14:15 +02:00