Add author_url in oembed response
authorChocobozzz <me@florianbigard.com>
Wed, 27 Jun 2018 07:08:34 +0000 (09:08 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 27 Jun 2018 07:08:34 +0000 (09:08 +0200)
server/controllers/services.ts

index 1dd8e28e5e1c64d39f6e5899c59ed52d57cdbf6a..bd4404b6222879c20e3104087c49af3c3e258b72 100644 (file)
@@ -56,6 +56,7 @@ function generateOEmbed (req: express.Request, res: express.Response, next: expr
     height: embedHeight,
     title: video.name,
     author_name: video.VideoChannel.Account.name,
+    author_url: video.VideoChannel.Account.Actor.url,
     provider_name: 'PeerTube',
     provider_url: webserverUrl
   }