Skip to content

Commit

Permalink
v11のblock/mute/pages系Permissionが使えるように
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed May 5, 2020
1 parent 891140f commit afd81c5
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/server/api/endpoints/blocking/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const meta = {

requireCredential: true,

kind: ['write:following', 'following-write'],
kind: ['write:blocks', 'write:following', 'following-write'],

params: {
userId: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/blocking/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const meta = {

requireCredential: true,

kind: ['write:following', 'following-write'],
kind: ['write:blocks', 'write:following', 'following-write'],

params: {
userId: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/blocking/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const meta = {

requireCredential: true,

kind: ['read:following', 'following-read'],
kind: ['read:blocks', 'read:following', 'following-read'],

params: {
limit: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/i/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const meta = {

requireCredential: true,

kind: ['read:account', 'account-read', 'account/read'],
kind: ['read:notifications', 'read:account', 'account-read', 'account/read'],

params: {
limit: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/i/page-likes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const meta = {

requireCredential: true,

kind: ['read:favorites', 'favorite-read', 'favorites-read'],
kind: ['read:page-likes', 'read:favorites', 'favorite-read', 'favorites-read'],

params: {
limit: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/i/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const meta = {

requireCredential: true,

kind: ['read:account', 'account-read', 'account/read'],
kind: ['read:pages', 'read:account', 'account-read', 'account/read'],

params: {
limit: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/mute/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const meta = {

requireCredential: true,

kind: ['write:account', 'account-write', 'account/write'],
kind: ['write:mutes', 'write:account', 'account-write', 'account/write'],

params: {
userId: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/mute/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const meta = {

requireCredential: true,

kind: ['write:account', 'account-write', 'account/write'],
kind: ['write:mutes', 'write:account', 'account-write', 'account/write'],

params: {
userId: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/mute/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const meta = {

requireCredential: true,

kind: ['read:account', 'account-read', 'account/read'],
kind: ['read:mutes', 'read:account', 'account-read', 'account/read'],

params: {
limit: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/pages/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const meta = {

requireCredential: true,

kind: ['write:notes', 'note-write'],
kind: ['write:pages', 'write:notes', 'note-write'],

limit: {
duration: ms('1hour'),
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/pages/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const meta = {

requireCredential: true,

kind: ['write:notes', 'note-write'],
kind: ['write:pages', 'write:notes', 'note-write'],

params: {
pageId: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/pages/like.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const meta = {

requireCredential: true,

kind: ['write:favorites', 'favorite-write'],
kind: ['write:page-likes', 'write:favorites', 'favorite-write'],

params: {
pageId: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/pages/unlike.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const meta = {

requireCredential: true,

kind: ['write:favorites', 'favorite-write'],
kind: ['write:page-likes', 'write:favorites', 'favorite-write'],

params: {
pageId: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/endpoints/pages/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const meta = {

requireCredential: true,

kind: ['write:notes', 'note-write'],
kind: ['write:pages', 'write:notes', 'note-write'],

params: {
pageId: {
Expand Down
18 changes: 9 additions & 9 deletions src/server/api/kinds.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const kinds = [
'read:account',
'write:account',
//'read:blocks',
//'write:blocks',
'read:blocks',
'write:blocks',
'read:drive',
'write:drive',
'read:favorites',
Expand All @@ -11,18 +11,18 @@ export const kinds = [
'write:following',
'read:messaging',
'write:messaging',
//'read:mutes',
//'write:mutes',
'read:mutes',
'write:mutes',
'write:notes',
//'read:notifications',
'read:notifications',
'write:notifications',
//'read:reactions',
'write:reactions',
'write:votes',
//'read:pages',
//'write:pages',
//'write:page-likes',
//'read:page-likes',
'read:pages',
'write:pages',
'write:page-likes',
'read:page-likes',
//'read:user-groups',
//'write:user-groups',
/*
Expand Down

0 comments on commit afd81c5

Please sign in to comment.