mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Status are sent to mastodon
This commit is contained in:
parent
ce33ee01cd
commit
e12a009254
20 changed files with 133 additions and 111 deletions
|
@ -1,10 +1,13 @@
|
|||
import { Transaction } from 'sequelize'
|
||||
import { VideoPrivacy } from '../../../shared/models/videos'
|
||||
import { getServerActor } from '../../helpers'
|
||||
import { VideoModel } from '../../models/video/video'
|
||||
import { VideoShareModel } from '../../models/video/video-share'
|
||||
import { sendVideoAnnounceToFollowers } from './send'
|
||||
|
||||
async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction) {
|
||||
if (video.privacy === VideoPrivacy.PRIVATE) return
|
||||
|
||||
const serverActor = await getServerActor()
|
||||
|
||||
const serverShare = VideoShareModel.create({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue