aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-01 20:34:00 -0700
committerredmatrix <git@macgirvin.com>2016-07-01 20:34:00 -0700
commit59474673395242f472124968e962702fb6b5f023 (patch)
tree3ecf3d5719d1943061b0be81851274f400aad3a3
parentbb5ec8cfb89bc5cc1532ffacee22e21aa9415e23 (diff)
downloadvolse-hubzilla-59474673395242f472124968e962702fb6b5f023.tar.gz
volse-hubzilla-59474673395242f472124968e962702fb6b5f023.tar.bz2
volse-hubzilla-59474673395242f472124968e962702fb6b5f023.zip
use small photo for Diaspora attribution correction; the medium looks awkward in the D* stream.
-rw-r--r--Zotlabs/Module/Tagger.php9
-rw-r--r--include/bb2diaspora.php4
2 files changed, 11 insertions, 2 deletions
diff --git a/Zotlabs/Module/Tagger.php b/Zotlabs/Module/Tagger.php
index 0a46cf56d..e1ed111a1 100644
--- a/Zotlabs/Module/Tagger.php
+++ b/Zotlabs/Module/Tagger.php
@@ -129,6 +129,15 @@ class Tagger extends \Zotlabs\Web\Controller {
store_item_tag($item['uid'],$item['id'],TERM_OBJ_POST,TERM_COMMUNITYTAG,$term,$tagid);
$ret = post_activity_item($arr);
+
+ $r = $ret['item'];
+ if($r) {
+ build_sync_packet(local_channel(),[
+ 'item' => [
+ encode_item($,true)
+ ]
+ ]);
+ }
if($ret['success'])
\Zotlabs\Daemon\Master::Summon(array('Notifier','tag',$ret['activity']['id']));
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index c7d0e56b1..16f67dc4a 100644
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
@@ -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);
// post will come across with the owner's identity. Throw a preamble onto the post to indicate the true author.
$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"
. $item['body'];
}