Skip to content

Commit b2a41e5

Browse files
[mirotalksfu] - fix activeRooms OG injection
1 parent b4fa6ed commit b2a41e5

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

app/src/Server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ dev dependencies: {
6464
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
6565
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
6666
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
67-
* @version 2.0.14
67+
* @version 2.0.15
6868
*
6969
*/
7070

@@ -318,7 +318,7 @@ const views = {
318318
whoAreYou: path.join(__dirname, '../../', 'public/views/whoAreYou.html'),
319319
};
320320

321-
const filesPath = [views.landing, views.newRoom, views.room, views.login, views.whoAreYou];
321+
const filesPath = [views.landing, views.newRoom, views.room, views.login, views.whoAreYou, views.activeRooms];
322322

323323
const htmlInjector = new HtmlInjector(filesPath, config.ui.brand);
324324

@@ -628,7 +628,7 @@ function startServer() {
628628

629629
// Get Active rooms
630630
app.get('/activeRooms', OIDCAuth, (req, res) => {
631-
res.sendFile(views.activeRooms);
631+
htmlInjector.injectHtml(views.activeRooms, res);
632632
});
633633

634634
// Check if room active (exists)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mirotalksfu",
3-
"version": "2.0.14",
3+
"version": "2.0.15",
44
"description": "WebRTC SFU browser-based video calls",
55
"main": "Server.js",
66
"scripts": {

public/js/Brand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ let BRAND = {
7979
},
8080
about: {
8181
imageUrl: '../images/mirotalk-logo.gif',
82-
title: '<strong>WebRTC SFU v2.0.14</strong>',
82+
title: '<strong>WebRTC SFU v2.0.15</strong>',
8383
html: `
8484
<button
8585
id="support-button"

public/js/Room.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
1111
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
1212
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
1313
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
14-
* @version 2.0.14
14+
* @version 2.0.15
1515
*
1616
*/
1717

@@ -5774,7 +5774,7 @@ function showAbout() {
57745774
position: 'center',
57755775
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
57765776
customClass: { image: 'img-about' },
5777-
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v2.0.14',
5777+
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v2.0.15',
57785778
html: `
57795779
<br />
57805780
<div id="about">

public/js/RoomClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
1010
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
1111
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
12-
* @version 2.0.14
12+
* @version 2.0.15
1313
*
1414
*/
1515

public/views/activeRooms.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
1010
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1111

12+
<!-- https://ogp.me -->
13+
14+
<meta property="og:type" content="{{OG_TYPE}}" />
15+
<meta property="og:site_name" content="{{OG_SITE_NAME}}" />
16+
<meta property="og:title" content="{{OG_TITLE}}" />
17+
<meta property="og:description" content="{{OG_DESCRIPTION}}" />
18+
<meta property="og:image" content="{{OG_IMAGE}}" />
19+
<meta property="og:url" content="{{OG_URL}}" />
20+
1221
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
1322
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" />
1423
<link rel="stylesheet" type="text/css" href="../css/ActiveRooms.css" />

0 commit comments

Comments
 (0)