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:
parent
44b88f180b
commit
1198edf4bb
17 changed files with 82 additions and 36 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue