]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/utils.ts
Add ability for users to block an account/instance on server side
[github/Chocobozzz/PeerTube.git] / server / helpers / utils.ts
index 39afb4e7b97fa898723fe56d44506d433a618fa3..049c3f8bcedc8d145022ca6066a5ca9291452ae4 100644 (file)
@@ -40,7 +40,10 @@ const getServerActor = memoizee(async function () {
   const application = await ApplicationModel.load()
   if (!application) throw Error('Could not load Application from database.')
 
-  return application.Account.Actor
+  const actor = application.Account.Actor
+  actor.Account = application.Account
+
+  return actor
 })
 
 function generateVideoTmpPath (target: string | ParseTorrent) {