forked from woem.men/forkey
implement mastodon push permission
currently doesn't do anything, but it's necessary for masto-fe to be able to sign in
This commit is contained in:
parent
9443b99399
commit
61db718bae
4 changed files with 4 additions and 1 deletions
|
@ -2243,6 +2243,7 @@ _permissions:
|
||||||
"read:clip-favorite": "View favorited clips"
|
"read:clip-favorite": "View favorited clips"
|
||||||
"read:federation": "Get federation data"
|
"read:federation": "Get federation data"
|
||||||
"write:report-abuse": "Report violation"
|
"write:report-abuse": "Report violation"
|
||||||
|
"write:push-notification": "Receive push notifications"
|
||||||
_auth:
|
_auth:
|
||||||
shareAccessTitle: "Granting application permissions"
|
shareAccessTitle: "Granting application permissions"
|
||||||
shareAccess: "Would you like to authorize \"{name}\" to access this account?"
|
shareAccess: "Would you like to authorize \"{name}\" to access this account?"
|
||||||
|
|
|
@ -72,7 +72,7 @@ export function build() {
|
||||||
.reduce((a, [k, v]) => (a[k] = (() => {
|
.reduce((a, [k, v]) => (a[k] = (() => {
|
||||||
const [lang] = k.split('-');
|
const [lang] = k.split('-');
|
||||||
switch (k) {
|
switch (k) {
|
||||||
case 'ja-JP': return v;
|
case 'ja-JP': return merge(locales['en-US'], v);
|
||||||
case 'ja-KS':
|
case 'ja-KS':
|
||||||
case 'en-US': return merge(locales['ja-JP'], v);
|
case 'en-US': return merge(locales['ja-JP'], v);
|
||||||
default: return merge(
|
default: return merge(
|
||||||
|
|
|
@ -3,6 +3,7 @@ import { permissions } from 'misskey-js';
|
||||||
const mastodonToMisskeyScopes: Map<string, (typeof permissions)[number][]> = new Map([
|
const mastodonToMisskeyScopes: Map<string, (typeof permissions)[number][]> = new Map([
|
||||||
['profile', ['read:account']],
|
['profile', ['read:account']],
|
||||||
['follow', ['read:following', 'write:following', 'read:blocks', 'write:blocks', 'read:mutes', 'write:mutes']],
|
['follow', ['read:following', 'write:following', 'read:blocks', 'write:blocks', 'read:mutes', 'write:mutes']],
|
||||||
|
['push', ['write:push-notification']],
|
||||||
['read:accounts', ['read:account']],
|
['read:accounts', ['read:account']],
|
||||||
['read:blocks', ['read:blocks']],
|
['read:blocks', ['read:blocks']],
|
||||||
['read:bookmarks', ['read:favorites']],
|
['read:bookmarks', ['read:favorites']],
|
||||||
|
|
|
@ -103,6 +103,7 @@ export const permissions = [
|
||||||
'read:clip-favorite',
|
'read:clip-favorite',
|
||||||
'read:federation',
|
'read:federation',
|
||||||
'write:report-abuse',
|
'write:report-abuse',
|
||||||
|
'write:push-notification', // Mastodon permission
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export const moderationLogTypes = [
|
export const moderationLogTypes = [
|
||||||
|
|
Loading…
Reference in a new issue