mirror of
https://github.com/friendica/friendica
synced 2025-04-23 10:30:11 +00:00
Use the new function when adding additional tags
This commit is contained in:
parent
c446712d08
commit
d9352f5a63
2 changed files with 6 additions and 2 deletions
|
@ -251,7 +251,7 @@ class Processor
|
|||
}
|
||||
|
||||
foreach ($activity['receiver'] as $receiver) {
|
||||
$item = Item::selectFirst(['id', 'tag', 'origin', 'author-link'], ['uri' => $activity['target_id'], 'uid' => $receiver]);
|
||||
$item = Item::selectFirst(['id', 'uri-id', 'tag', 'origin', 'author-link'], ['uri' => $activity['target_id'], 'uid' => $receiver]);
|
||||
if (!DBA::isResult($item)) {
|
||||
// We don't fetch missing content for this purpose
|
||||
continue;
|
||||
|
@ -262,6 +262,8 @@ class Processor
|
|||
continue;
|
||||
}
|
||||
|
||||
Tag::store($item['uri-id'], Tag::HASHTAG, $activity['object_content'], $activity['object_id']);
|
||||
|
||||
// To-Do:
|
||||
// - Check if "blocktag" is set
|
||||
// - Check if actor is a contact
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue