}
}
+ if (!empty($source) && ($transmit || DI::config()->get('debug', 'store_source'))) {
+ Post\Activity::insert($item['uri-id'], $source);
+ }
+
if ($transmit) {
- if (!empty($source)) {
- Post\Activity::insert($item['uri-id'], $source);
- }
Worker::add(['priority' => $priority, 'dont_fork' => true], 'Notifier', $notify_type, (int)$posted_item['uri-id'], (int)$posted_item['uid']);
}
// ap_log_failure (Boolean)
// Logs every ActivityPub activity that couldn't be compacted
'ap_log_failure' => false,
+
+ // store_source (Boolean)
+ // Store the source of any post that arrived
+ 'store_source' => false,
],
'smarty3' => [
// config_dir (String)