mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:10:13 +00:00
Store the source of incoming posts
This commit is contained in:
parent
3bd6acba7e
commit
246021fdfa
2 changed files with 8 additions and 3 deletions
|
@ -1328,10 +1328,11 @@ class Item
|
|||
}
|
||||
}
|
||||
|
||||
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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue