use small photo for Diaspora attribution correction; the medium looks awkward in the D* stream.
This commit is contained in:
parent
bb5ec8cfb8
commit
5947467339
@ -129,6 +129,15 @@ class Tagger extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
store_item_tag($item['uid'],$item['id'],TERM_OBJ_POST,TERM_COMMUNITYTAG,$term,$tagid);
|
store_item_tag($item['uid'],$item['id'],TERM_OBJ_POST,TERM_COMMUNITYTAG,$term,$tagid);
|
||||||
$ret = post_activity_item($arr);
|
$ret = post_activity_item($arr);
|
||||||
|
|
||||||
|
$r = $ret['item'];
|
||||||
|
if($r) {
|
||||||
|
build_sync_packet(local_channel(),[
|
||||||
|
'item' => [
|
||||||
|
encode_item($,true)
|
||||||
|
]
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
if($ret['success'])
|
if($ret['success'])
|
||||||
\Zotlabs\Daemon\Master::Summon(array('Notifier','tag',$ret['activity']['id']));
|
\Zotlabs\Daemon\Master::Summon(array('Notifier','tag',$ret['activity']['id']));
|
||||||
|
@ -302,11 +302,11 @@ function bb2diaspora_itemwallwall(&$item) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(($wallwall) && (is_array($item['author'])) && $item['author']['xchan_url'] && $item['author']['xchan_name'] && $item['author']['xchan_photo_m']) {
|
if(($wallwall) && (is_array($item['author'])) && $item['author']['xchan_url'] && $item['author']['xchan_name'] && $item['author']['xchan_photo_s']) {
|
||||||
logger('bb2diaspora_itemwallwall: wall to wall post',LOGGER_DEBUG);
|
logger('bb2diaspora_itemwallwall: wall to wall post',LOGGER_DEBUG);
|
||||||
// post will come across with the owner's identity. Throw a preamble onto the post to indicate the true author.
|
// post will come across with the owner's identity. Throw a preamble onto the post to indicate the true author.
|
||||||
$item['body'] = "\n\n"
|
$item['body'] = "\n\n"
|
||||||
. '[img]' . $item['author']['xchan_photo_m'] . '[/img]'
|
. '[img]' . $item['author']['xchan_photo_s'] . '[/img]'
|
||||||
. '[url=' . $item['author']['xchan_url'] . ']' . $item['author']['xchan_name'] . '[/url]' . "\n\n"
|
. '[url=' . $item['author']['xchan_url'] . ']' . $item['author']['xchan_name'] . '[/url]' . "\n\n"
|
||||||
. $item['body'];
|
. $item['body'];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user