mirror of
https://github.com/friendica/friendica
synced 2025-04-19 06:30:10 +00:00
Add additional direction types
This commit is contained in:
parent
cb647b5b6c
commit
5a41cd437d
8 changed files with 102 additions and 47 deletions
|
@ -26,6 +26,7 @@ use Friendica\Content\Text\BBCode;
|
|||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\APContact;
|
||||
|
@ -353,7 +354,7 @@ class Processor
|
|||
DBA::close($items);
|
||||
|
||||
if (count($original) != count($receivers)) {
|
||||
Logger::info('Improved data', ['id' => $activity['id'], 'object' => $activity['object_id'], 'original' => $original, 'improved' => $receivers]);
|
||||
Logger::info('Improved data', ['id' => $activity['id'], 'object' => $activity['object_id'], 'original' => $original, 'improved' => $receivers, 'callstack' => System::callstack()]);
|
||||
}
|
||||
|
||||
return $receivers;
|
||||
|
@ -544,6 +545,9 @@ class Processor
|
|||
case Receiver::TARGET_FOLLOWER:
|
||||
$item['post-type'] = Item::PT_FOLLOWER;
|
||||
break;
|
||||
case Receiver::TARGET_ANSWER:
|
||||
$item['post-type'] = Item::PT_COMMENT;
|
||||
break;
|
||||
default:
|
||||
$item['post-type'] = Item::PT_ARTICLE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue