diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-27 09:08:34 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-27 09:08:34 +0200 |
commit | 49799b165e3cd547f1dbb23bd31369baca0b39da (patch) | |
tree | c2cb1751bf895848d819615917543a89dc1dc6c6 /server/controllers | |
parent | 0892f756aad67502ef437f939c758ad7a3792084 (diff) | |
download | PeerTube-49799b165e3cd547f1dbb23bd31369baca0b39da.tar.gz PeerTube-49799b165e3cd547f1dbb23bd31369baca0b39da.tar.zst PeerTube-49799b165e3cd547f1dbb23bd31369baca0b39da.zip |
Add author_url in oembed response
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/services.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/services.ts b/server/controllers/services.ts index 1dd8e28e5..bd4404b62 100644 --- a/server/controllers/services.ts +++ b/server/controllers/services.ts | |||
@@ -56,6 +56,7 @@ function generateOEmbed (req: express.Request, res: express.Response, next: expr | |||
56 | height: embedHeight, | 56 | height: embedHeight, |
57 | title: video.name, | 57 | title: video.name, |
58 | author_name: video.VideoChannel.Account.name, | 58 | author_name: video.VideoChannel.Account.name, |
59 | author_url: video.VideoChannel.Account.Actor.url, | ||
59 | provider_name: 'PeerTube', | 60 | provider_name: 'PeerTube', |
60 | provider_url: webserverUrl | 61 | provider_url: webserverUrl |
61 | } | 62 | } |