+export {
+ processAnnounceActivity
+}
+
+// ---------------------------------------------------------------------------
+
+async function processVideoShare (actorAnnouncer: MActorSignature, activity: ActivityAnnounce, notify: boolean) {
+ const objectUri = typeof activity.object === 'string' ? activity.object : activity.object.id
+
+ let video: MVideoAccountLightBlacklistAllFiles
+ let videoCreated: boolean
+
+ try {
+ const result = await getOrCreateVideoAndAccountAndChannel({ videoObject: objectUri })
+ video = result.video
+ videoCreated = result.created
+ } catch (err) {
+ logger.debug('Cannot process share of %s. Maybe this is not a video object, so just skipping.', objectUri, { err })
+ return