Store the push/pull direction in the conversation table

This commit is contained in:
Michael 2020-03-03 08:01:04 +00:00
parent 6f0d40c6c0
commit af6db65961
5 changed files with 27 additions and 11 deletions

View file

@ -490,12 +490,7 @@ class Processor
}
if (isset($activity['push'])) {
$push_app = $activity['push'] ? '📨' : '🚜';
if (!empty($item['app'])) {
$item['app'] .= ' (' . $push_app . ')';
} else {
$item['app'] .= $push_app;
}
$item['direction'] = $activity['push'] ? Conversation::PUSH : Conversation::PULL;
}
$item['plink'] = $activity['alternate-url'] ?? $item['uri'];