mirror of
https://github.com/friendica/friendica
synced 2025-04-24 02:30:13 +00:00
Aliases are now handled correctly. The public item copy gets a "real" contact id as well.
This commit is contained in:
parent
e02b982f77
commit
b95d34f9db
3 changed files with 82 additions and 48 deletions
|
@ -66,9 +66,11 @@ function add_thread($itemid, $onlyshadow = false) {
|
|||
if (!$r) {
|
||||
// Preparing public shadow (removing user specific data)
|
||||
require_once("include/items.php");
|
||||
require_once("include/Contact.php");
|
||||
|
||||
unset($item[0]['id']);
|
||||
$item[0]['uid'] = 0;
|
||||
$item[0]['contact-id'] = 0;
|
||||
$item[0]['contact-id'] = get_contact($item[0]['author-link'], 0);
|
||||
$public_shadow = item_store($item[0], false, false, true);
|
||||
|
||||
logger("add_thread: Stored public shadow for post ".$itemid." under id ".$public_shadow, LOGGER_DEBUG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue