X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fplaintext.php;h=793f9935a74ba061ce1b5b5ba4c8af7e90838dbf;hb=8a11a60932115725d65791d99a817aefbde174b7;hp=e18604334b2041f3c0b5fe6f62f28978ae66fd2f;hpb=eca1b1ff589770d21041a82190a41e92c29dffd4;p=friendica.git diff --git a/include/plaintext.php b/include/plaintext.php index e18604334b..793f9935a7 100644 --- a/include/plaintext.php +++ b/include/plaintext.php @@ -189,6 +189,13 @@ function get_attached_data($body) { if (count($pictures) == 1) { // Checking, if the link goes to a picture $data = parseurl_getsiteinfo_cached($pictures[0][1], true); + + // Workaround: + // Sometimes photo posts to the own album are not detected at the start. + // So we seem to cannot use the cache for these cases. That's strange. + if (($data["type"] != "photo") AND strstr($pictures[0][1], "/photos/")) + $data = parseurl_getsiteinfo($pictures[0][1], true); + if ($data["type"] == "photo") { $post["type"] = "photo"; if (isset($data["images"][0])) {