gotosocial/internal/api/model
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
..
account.go [feature] Support setting private notes on accounts (#1982) 2023-07-27 10:30:39 +02:00
admin.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
announcement.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
announcementreaction.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
application.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
attachment.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
block.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
card.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
content.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
context.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
conversation.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
domain.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
emoji.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
emojicategory.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
featuredtag.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
field.go [feature] Enable federation in/out of profile PropertyValue fields (#1722) 2023-05-09 11:16:10 +01:00
filter.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
history.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
instance.go [Frontend] Settings for profile fields (#1885) 2023-06-13 12:21:26 +02:00
instancev1.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
instancev2.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
list.go [feature] Add List functionality (#1802) 2023-05-25 10:37:38 +02:00
marker.go [feature] Implement markers API (#1989) 2023-07-29 12:49:14 +02:00
mention.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
multistatus.go [chore/bugfix] Domain block tidying up, Implement first pass of 207 Multi-Status (#1886) 2023-07-07 11:34:12 +02:00
notification.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
oauth.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
paging.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
poll.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
preferences.go [feature] Implement the preferences client API (#1740) 2023-05-06 17:42:58 +02:00
pushsubscription.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
relationship.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
report.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
results.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
rule.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
scheduledstatus.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
search.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
source.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
status.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
tag.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
token.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
user.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
well-known.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00