gotosocial/internal/typeutils
f0x52 92de8fb396
[feature] Instance rules (#2125)
* init instance rules database model, admin api

* expose instance rules in public instance api

* public /api/v1/instance/rules route

* GET ruleById

* createRule route

* createRule auth check

* updateRule

* deleteRule

* list rules on about page

* ruleGet auth

* add about page ids for anchors

* process and store adding violated rules to reports

* admin api models for instance rules

* instance rule edit frontend

* change rule inputs to textareas

* database fixes after rebase (#2124)

* remove unused imports

* fix db migration column name

* fix tests

* fix more tests

* fix postgres error with wrongly used Ident

* add some tests, fiddle with rule model a bit, fix postgres migration

* swagger docs

---------

Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
2023-08-19 14:33:15 +02:00
..
astointernal.go [bugfix] don't accept unrelated statuses (#2078) 2023-08-08 12:26:34 +01:00
astointernal_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
converter.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
converter_test.go [feature] Add List functionality (#1802) 2023-05-25 10:37:38 +02:00
defaulticons.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
frontendtointernal.go [feature] Implement markers API (#1989) 2023-07-29 12:49:14 +02:00
internal.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
internaltoas.go [feature] List replies policy, refactor async workers (#2087) 2023-08-09 19:14:33 +02:00
internaltoas_test.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
internaltofrontend.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
internaltofrontend_test.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
internaltorss.go [bugfix] Use length in runes when trimming for RSS (#2094) 2023-08-10 18:26:56 +02:00
internaltorss_test.go [bugfix] Use length in runes when trimming for RSS (#2094) 2023-08-10 18:26:56 +02:00
util.go [performance] add caching of status fave, boost of, in reply to ID lists (#2060) 2023-08-04 12:28:33 +01:00
util_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
wrap.go [chore/bugfix] Refactor ap/extract.go functions, return URIs more reliably (#1897) 2023-06-17 16:49:11 +01:00
wrap_test.go [feature] Enable federation in/out of profile PropertyValue fields (#1722) 2023-05-09 11:16:10 +01:00