mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Move models to typescript-sequelize
This commit is contained in:
parent
c893d4514e
commit
3fd3ab2d34
150 changed files with 3676 additions and 5074 deletions
|
@ -1,11 +1,11 @@
|
|||
import { Transaction } from 'sequelize'
|
||||
import { ActivityAccept } from '../../../../shared/models/activitypub/activity'
|
||||
import { AccountInstance } from '../../../models'
|
||||
import { AccountFollowInstance } from '../../../models/account/account-follow-interface'
|
||||
import { unicastTo } from './misc'
|
||||
import { ActivityAccept } from '../../../../shared/models/activitypub'
|
||||
import { AccountModel } from '../../../models/account/account'
|
||||
import { AccountFollowModel } from '../../../models/account/account-follow'
|
||||
import { getAccountFollowAcceptActivityPubUrl } from '../url'
|
||||
import { unicastTo } from './misc'
|
||||
|
||||
async function sendAccept (accountFollow: AccountFollowInstance, t: Transaction) {
|
||||
async function sendAccept (accountFollow: AccountFollowModel, t: Transaction) {
|
||||
const follower = accountFollow.AccountFollower
|
||||
const me = accountFollow.AccountFollowing
|
||||
|
||||
|
@ -23,7 +23,7 @@ export {
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function acceptActivityData (url: string, byAccount: AccountInstance) {
|
||||
function acceptActivityData (url: string, byAccount: AccountModel) {
|
||||
const activity: ActivityAccept = {
|
||||
type: 'Accept',
|
||||
id: url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue