]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Text/BBCode.php
Add docs
[friendica.git] / src / Content / Text / BBCode.php
index 8187521582ff253a665b7acd45031d7c3fd54c66..11e7840b0a283e7237808ed0283f79fb4b7d7b4e 100644 (file)
@@ -277,7 +277,7 @@ class BBCode extends BaseObject
 
                        if (preg_match_all("(\[url=(.*?)\]\s*\[img\](.*?)\[\/img\]\s*\[\/url\])ism", $body, $pictures, PREG_SET_ORDER)) {
                                if ((count($pictures) == 1) && !$has_title) {
-                                       if (!empty($item['object-type']) && ($item['object-type'] == Activity::OBJ_IMAGE)) {
+                                       if (!empty($item['object-type']) && ($item['object-type'] == Activity\ObjectType::IMAGE)) {
                                                // Replace the preview picture with the real picture
                                                $url = str_replace('-1.', '-0.', $pictures[0][2]);
                                                $data = ['url' => $url, 'type' => 'photo'];