mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Add follow tests
This commit is contained in:
parent
81de19482b
commit
0f91ae62df
23 changed files with 736 additions and 522 deletions
|
@ -4,11 +4,11 @@ import { database as db } from '../../../initializers'
|
|||
import { AccountInstance } from '../../../models/account/account-interface'
|
||||
import { logger } from '../../../helpers/logger'
|
||||
import { sendAccept } from '../send/send-accept'
|
||||
import { getOrCreateAccount } from '../account'
|
||||
import { getOrCreateAccountAndServer } from '../account'
|
||||
|
||||
async function processFollowActivity (activity: ActivityFollow) {
|
||||
const activityObject = activity.object
|
||||
const account = await getOrCreateAccount(activity.actor)
|
||||
const account = await getOrCreateAccountAndServer(activity.actor)
|
||||
|
||||
return processFollow(account, activityObject)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue