mirror of
https://github.com/friendica/friendica
synced 2025-04-24 05:10:11 +00:00
Store and display to/cc/bcc
This commit is contained in:
parent
bc5a1e5ace
commit
a491c5d916
5 changed files with 97 additions and 24 deletions
|
@ -527,6 +527,27 @@ class Processor
|
|||
|
||||
$item['uid'] = $receiver;
|
||||
|
||||
$type = $activity['reception_type'][$receiver] ?? Receiver::TARGET_UNKNOWN;
|
||||
switch($type) {
|
||||
case Receiver::TARGET_TO:
|
||||
$item['post-type'] = Item::PT_TO;
|
||||
break;
|
||||
case Receiver::TARGET_CC:
|
||||
$item['post-type'] = Item::PT_CC;
|
||||
break;
|
||||
case Receiver::TARGET_BTO:
|
||||
$item['post-type'] = Item::PT_BTO;
|
||||
break;
|
||||
case Receiver::TARGET_BCC:
|
||||
$item['post-type'] = Item::PT_BCC;
|
||||
break;
|
||||
case Receiver::TARGET_FOLLOWER:
|
||||
$item['post-type'] = Item::PT_FOLLOWER;
|
||||
break;
|
||||
default:
|
||||
$item['post-type'] = Item::PT_ARTICLE;
|
||||
}
|
||||
|
||||
if ($item['isForum'] ?? false) {
|
||||
$item['contact-id'] = Contact::getIdForURL($activity['actor'], $receiver);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue