forked from woem.men/forkey
Compare commits
4 commits
aeaf34b904
...
33aef80b29
Author | SHA1 | Date | |
---|---|---|---|
33aef80b29 | |||
56dcf2c956 | |||
f531171c59 | |||
5ede011bf0 |
10 changed files with 6 additions and 33 deletions
|
@ -5,8 +5,6 @@ on:
|
|||
paths:
|
||||
- packages/misskey-js/**
|
||||
pull_request:
|
||||
#paths:
|
||||
# - packages/misskey-js/**
|
||||
|
||||
jobs:
|
||||
report:
|
||||
|
|
|
@ -8,9 +8,6 @@ on:
|
|||
- packages/misskey-js/package.json
|
||||
- package.json
|
||||
pull_request:
|
||||
paths:
|
||||
- packages/misskey-js/package.json
|
||||
- package.json
|
||||
|
||||
jobs:
|
||||
check-version:
|
||||
|
|
|
@ -11,12 +11,6 @@ on:
|
|||
- packages/misskey-js/**
|
||||
- packages/shared/.eslintrc.js
|
||||
pull_request:
|
||||
#paths:
|
||||
# - packages/backend/**
|
||||
# - packages/frontend/**
|
||||
# - packages/sw/**
|
||||
# - packages/misskey-js/**
|
||||
# - packages/shared/.eslintrc.js
|
||||
|
||||
jobs:
|
||||
pnpm_install:
|
||||
|
|
|
@ -9,10 +9,6 @@ on:
|
|||
# for permissions
|
||||
- packages/misskey-js/**
|
||||
pull_request:
|
||||
#paths:
|
||||
# - packages/backend/**
|
||||
# for permissions
|
||||
# - packages/misskey-js/**
|
||||
|
||||
jobs:
|
||||
unit:
|
||||
|
|
|
@ -14,12 +14,6 @@ on:
|
|||
- packages/backend/**
|
||||
|
||||
pull_request:
|
||||
#paths:
|
||||
# - packages/frontend/**
|
||||
# # for permissions
|
||||
# - packages/misskey-js/**
|
||||
# # for e2e
|
||||
# - packages/backend/**
|
||||
|
||||
jobs:
|
||||
vitest:
|
||||
|
|
|
@ -10,8 +10,6 @@ on:
|
|||
paths:
|
||||
- packages/misskey-js/**
|
||||
pull_request:
|
||||
#paths:
|
||||
# - packages/misskey-js/**
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
|
@ -7,8 +7,6 @@ on:
|
|||
paths:
|
||||
- packages/backend/**
|
||||
pull_request:
|
||||
paths:
|
||||
- packages/backend/**
|
||||
|
||||
jobs:
|
||||
validate-api-json:
|
||||
|
|
|
@ -244,14 +244,14 @@ export class SignupApiService {
|
|||
} else {
|
||||
try {
|
||||
const { account, secret } = await this.signupService.signup({
|
||||
username, password, host, reason
|
||||
username, password, host, reason,
|
||||
});
|
||||
|
||||
if (instance.approvalRequiredForSignup) {
|
||||
if (emailAddress) {
|
||||
this.emailService.sendEmail(emailAddress, 'Approval pending',
|
||||
'Congratulations! Your account is now pending approval. You will get notified when you have been accepted.',
|
||||
'Congratulations! Your account is now pending approval. You will get notified when you have been accepted.');
|
||||
'Congratulations! Your account is now pending approval. You will get notified when you have been accepted.',
|
||||
'Congratulations! Your account is now pending approval. You will get notified when you have been accepted.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -63,12 +63,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
|
||||
await this.usedUsernamesRepository.delete({ username: user.username });
|
||||
|
||||
|
||||
//Actually delete it since the last function doesnt actually delete the account
|
||||
//Note: Before approval these accounts wont federate so this is totally fine.
|
||||
await this.usersRepository.delete(user.id);
|
||||
|
||||
|
||||
this.moderationLogService.log(me, 'decline', {
|
||||
userId: user.id,
|
||||
userUsername: user.username,
|
||||
|
|
|
@ -37,9 +37,9 @@ export const meta = {
|
|||
|
||||
unapprovedUser: {
|
||||
message: 'The user has not been approved yet.',
|
||||
code: 'UNAPPROVED_USER',
|
||||
id: '8d66f136-b3e1-48fd-92c4-30ecfd7fdb7a',
|
||||
},
|
||||
code: 'UNAPPROVED_USER',
|
||||
id: '8d66f136-b3e1-48fd-92c4-30ecfd7fdb7a',
|
||||
},
|
||||
|
||||
followeeIsYourself: {
|
||||
message: 'Followee is yourself.',
|
||||
|
|
Loading…
Reference in a new issue