]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Term.php
The "file" variable isn't stored anymore in the item table
[friendica.git] / src / Model / Term.php
index bed44d6857a0f66580ddb4e8d3ee20aa0a0c9d28..cca47080145dfed050dc323e7a3d0539cde57cfc 100644 (file)
@@ -41,7 +41,11 @@ class Term
                $condition = ['otype' => TERM_OBJ_POST, 'oid' => $itemid, 'type' => [TERM_FILE, TERM_CATEGORY]];
                $tags = dba::select('term', [], $condition);
                while ($tag = dba::fetch($tags)) {
-                       $file_text .= '[' . $tag['term'] . ']';
+                       if ($tag['type'] == TERM_CATEGORY) {
+                               $file_text .= '<' . $tag['term'] . '>';
+                       } else {
+                               $file_text .= '[' . $tag['term'] . ']';
+                       }
                }
                return $file_text;
        }