From 5d2d306d9fc91399501e282228bba71129a07a07 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 8 Nov 2012 21:45:53 +0100 Subject: [PATCH] Make reshared Diaspora postings look lile wall-to-wall postings (preparation for real forwards in friendica) --- include/diaspora.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/diaspora.php b/include/diaspora.php index f645aeb39b..275b29a90a 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -1022,10 +1022,12 @@ function diaspora_reshare($importer,$xml,$msg) { $datarray['owner-name'] = $contact['name']; $datarray['owner-link'] = $contact['url']; $datarray['owner-avatar'] = $contact['thumb']; - $datarray['author-name'] = $contact['name']; - $datarray['author-link'] = $contact['url']; - $datarray['author-avatar'] = $contact['thumb']; - $datarray['body'] = $prefix . $body; + $datarray['author-name'] = $person['name']; // Let reshared messages look like wall-to-wall posts + $datarray['author-link'] = $person['url']; // we have to set an additional value in the item in the future + // $datarray['author-avatar'] = $person['thumb']; // to distinct the wall-to-wall-posts from reshared/repeated messages + $datarray['author-avatar'] = ((x($person,'thumb')) ? $person['thumb'] : $person['photo']); + // $datarray['body'] = $prefix . $body; + $datarray['body'] = $body; $datarray['tag'] = $str_tags; $datarray['app'] = 'Diaspora'; -- 2.39.5