Corrections for DFRN, added support for OStatus

This commit is contained in:
Michael 2020-04-14 17:00:56 +00:00
parent 3f4c85dead
commit 1e702d4145
2 changed files with 11 additions and 2 deletions

View file

@ -2465,13 +2465,13 @@ class DFRN
$fields = ['uri-id' => $item['uri-id'], 'name' => substr($term, 0, 64)];
if ($termhash == Term::TAG_CHARACTER[Term::MENTION]) {
$fields['type'] = Term::EXCLUSIVE_MENTION;
$fields['type'] = Term::MENTION;
} elseif ($termhash == Term::TAG_CHARACTER[Term::EXCLUSIVE_MENTION]) {
$fields['type'] = Term::EXCLUSIVE_MENTION;
} elseif ($termhash == Term::TAG_CHARACTER[Term::IMPLICIT_MENTION]) {
$fields['type'] = Term::IMPLICIT_MENTION;
} elseif ($termhash == Term::TAG_CHARACTER[Term::HASHTAG]) {
$fields['type'] = Term::IMPLICIT_MENTION;
$fields['type'] = Term::HASHTAG;
}
if (!empty($termurl)) {