]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Processor.php
Merge pull request #9196 from annando/queryValue
[friendica.git] / src / Protocol / ActivityPub / Processor.php
index d8ec1a80d82d406f3905e2824846675eff3138af..24ac133358ac539c4874f7c35834087c963d5a6e 100644 (file)
@@ -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;
                        }