]> git.mxchange.org Git - friendica.git/commitdiff
Add OEmbed data to the body of reshares
authorMichael Vogel <icarus@dabo.de>
Wed, 23 Mar 2016 06:36:17 +0000 (07:36 +0100)
committerMichael Vogel <icarus@dabo.de>
Wed, 23 Mar 2016 06:36:17 +0000 (07:36 +0100)
include/diaspora.php

index 289f717708d4482949aa323e54ed402e898f878a..b339e73157253e5669e70d2ba4eade8e6f251fe7 100644 (file)
@@ -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];