1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Fix user notifications on new follow

This commit is contained in:
Chocobozzz 2019-08-02 10:53:36 +02:00
parent 44b88f180b
commit 1198edf4bb
No known key found for this signature in database
GPG key ID: 583A612D890159BE
17 changed files with 82 additions and 36 deletions

View file

@ -8,8 +8,10 @@ import { VideoAbuseModel } from '../../../models/video/video-abuse'
import { getOrCreateVideoAndAccountAndChannel } from '../videos'
import { Notifier } from '../../notifier'
import { getAPId } from '../../../helpers/activitypub'
import { APProcessorOptions } from '../../../typings/activitypub-processor.model'
async function processFlagActivity (activity: ActivityCreate | ActivityFlag, byActor: ActorModel) {
async function processFlagActivity (options: APProcessorOptions<ActivityCreate | ActivityFlag>) {
const { activity, byActor } = options
return retryTransactionWrapper(processCreateVideoAbuse, activity, byActor)
}