Browse Source

Bugfix: Reimported Friendica posts from pump.io had the links missing.

pull/3023/head
Michael 4 years ago
parent
commit
8cab220387
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      include/plaintext.php

+ 4
- 0
include/plaintext.php View File

@ -63,6 +63,10 @@ function get_old_attachment_data($body) {
$post["url"] = $matches[1];
$post["title"] = $matches[2];
}
if (($post["url"] == "") AND (in_array($post["type"], array("link", "video")))
AND preg_match("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", $attacheddata, $matches)) {
$post["url"] = $matches[1];
}
// Search for description
if (preg_match("/\[quote\](.*?)\[\/quote\]/ism", $attacheddata, $matches))


Loading…
Cancel
Save