aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-08-21 08:26:46 +0000
committerMario <mario@mariovavti.com>2021-08-21 08:26:46 +0000
commit168010a32cf2a2d664964b5520d6694c9b4ed5c3 (patch)
tree43164fe88d907178c6f465ecda844fa29ec032ed /Zotlabs/Lib/Activity.php
parent6eb84a3d9a9e09a12a7c30cf45844af809e8a9a3 (diff)
downloadvolse-hubzilla-168010a32cf2a2d664964b5520d6694c9b4ed5c3.tar.gz
volse-hubzilla-168010a32cf2a2d664964b5520d6694c9b4ed5c3.tar.bz2
volse-hubzilla-168010a32cf2a2d664964b5520d6694c9b4ed5c3.zip
remove deprecated forum term type and re-introduce bookmark term type
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php20
1 files changed, 9 insertions, 11 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 81787781a..df637ebdd 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -590,13 +590,11 @@ class Activity {
break;
case 'Mention':
- $mention_type = substr($t['name'], 0, 1);
- if ($mention_type === '!') {
- $ret[] = ['ttype' => TERM_FORUM, 'url' => $t['href'], 'term' => escape_tags(substr($t['name'], 1))];
- }
- else {
- $ret[] = ['ttype' => TERM_MENTION, 'url' => $t['href'], 'term' => escape_tags((substr($t['name'], 0, 1) === '@') ? substr($t['name'], 1) : $t['name'])];
- }
+ $ret[] = ['ttype' => TERM_MENTION, 'url' => $t['href'], 'term' => escape_tags((substr($t['name'], 0, 1) === '@') ? substr($t['name'], 1) : $t['name'])];
+ break;
+
+ case 'Bookmark':
+ $ret[] = ['ttype' => TERM_BOOKMARK, 'url' => $t['href'], 'term' => escape_tags($t['name']];
break;
default:
@@ -623,14 +621,14 @@ class Activity {
}
break;
- case TERM_FORUM:
- $ret[] = ['type' => 'Mention', 'href' => $t['url'], 'name' => '!' . $t['term']];
- break;
-
case TERM_MENTION:
$ret[] = ['type' => 'Mention', 'href' => $t['url'], 'name' => '@' . $t['term']];
break;
+ case TERM_BOOKMARK:
+ $ret[] = ['type' => 'Bookmark', 'href' => $t['url'], 'name' => $t['term']];
+ break;
+
default:
break;
}