mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Optimize view endpoint
This commit is contained in:
parent
943e519390
commit
2c8776fc31
6 changed files with 46 additions and 21 deletions
|
@ -5,9 +5,9 @@ import { getVideoLikeActivityPubUrl } from '../url'
|
|||
import { sendVideoRelatedActivity } from './utils'
|
||||
import { audiencify, getAudience } from '../audience'
|
||||
import { logger } from '../../../helpers/logger'
|
||||
import { MActorAudience, MVideoAccountLight, MVideoUrl } from '@server/typings/models'
|
||||
import { MActorAudience, MVideoImmutable, MVideoUrl } from '@server/typings/models'
|
||||
|
||||
async function sendView (byActor: ActorModel, video: MVideoAccountLight, t: Transaction) {
|
||||
async function sendView (byActor: ActorModel, video: MVideoImmutable, t: Transaction) {
|
||||
logger.info('Creating job to send view of %s.', video.url)
|
||||
|
||||
const activityBuilder = (audience: ActivityAudience) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue