From a0c0881e5476b73df74fe55054a228d703c2ad52 Mon Sep 17 00:00:00 2001
From: Michael Vogel <icarus@dabo.de>
Date: Wed, 23 Mar 2016 07:36:17 +0100
Subject: [PATCH] Add OEmbed data to the body of reshares

---
 include/diaspora.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/diaspora.php b/include/diaspora.php
index 289f717708..b339e73157 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -1859,6 +1859,10 @@ class diaspora {
 				$r = array();
 			elseif (self::is_reshare($r[0]["body"], false)) {
 				$r[0]["body"] = diaspora2bb(bb2diaspora($r[0]["body"]));
+
+				// Add OEmbed and other information to the body
+				$r[0]["body"] = add_page_info_to_body($r[0]["body"], false, true);
+
 				return $r[0];
 			} else
 				return $r[0];
-- 
2.39.5