aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2014-02-04 16:19:35 +0100
committermarijus <mario@localhost.localdomain>2014-02-04 16:19:35 +0100
commit4253581733d4c6c7f0dce5c3ea7566c6af4af936 (patch)
tree1eadff45b06adcac3f93432beea63b7ccd7391ff /include/items.php
parent2a9baa1f325b62541ad7a7b68e91455b104677bd (diff)
parent74298c44ae445125bfc2b13d20da91b9d349ce43 (diff)
downloadvolse-hubzilla-4253581733d4c6c7f0dce5c3ea7566c6af4af936.tar.gz
volse-hubzilla-4253581733d4c6c7f0dce5c3ea7566c6af4af936.tar.bz2
volse-hubzilla-4253581733d4c6c7f0dce5c3ea7566c6af4af936.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index a74c3d460..7b11a1c3c 100755
--- a/include/items.php
+++ b/include/items.php
@@ -822,7 +822,7 @@ function encode_item_xchan($xchan) {
function encode_item_terms($terms) {
$ret = array();
- $allowed_export_terms = array( TERM_UNKNOWN, TERM_HASHTAG, TERM_MENTION, TERM_CATEGORY );
+ $allowed_export_terms = array( TERM_UNKNOWN, TERM_HASHTAG, TERM_MENTION, TERM_CATEGORY, TERM_BOOKMARK );
if($terms) {
foreach($terms as $term) {
@@ -834,7 +834,7 @@ function encode_item_terms($terms) {
}
function termtype($t) {
- $types = array('unknown','hashtag','mention','category','private_category','file','search');
+ $types = array('unknown','hashtag','mention','category','private_category','file','search','thing','bookmark');
return(($types[$t]) ? $types[$t] : 'unknown');
}
@@ -865,6 +865,12 @@ function decode_tags($t) {
case 'search':
$tag['type'] = TERM_SEARCH;
break;
+ case 'thing':
+ $tag['type'] = TERM_THING;
+ break;
+ case 'bookmark':
+ $tag['type'] = TERM_BOOKMARK;
+ break;
default:
case 'unknown':
$tag['type'] = TERM_UNKNOWN;