aboutsummaryrefslogtreecommitdiffstats
path: root/include/bb2diaspora.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-22 18:14:21 -0700
committerfriendica <info@friendica.com>2014-10-22 18:14:21 -0700
commit902b5c52e5ca9359522f33bbecaf7f2f3c1ba90d (patch)
tree205e15153ae3a1e2d22a3c52f4cdbdbe118c0e64 /include/bb2diaspora.php
parente3943087b270399c6c2333f0bae877a8d0d62510 (diff)
downloadvolse-hubzilla-902b5c52e5ca9359522f33bbecaf7f2f3c1ba90d.tar.gz
volse-hubzilla-902b5c52e5ca9359522f33bbecaf7f2f3c1ba90d.tar.bz2
volse-hubzilla-902b5c52e5ca9359522f33bbecaf7f2f3c1ba90d.zip
backtrack on attribution for wall-to-wall comments - triggered too often and unnecessarily.
Diffstat (limited to 'include/bb2diaspora.php')
-rw-r--r--include/bb2diaspora.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index 5663ce9ef..4f37e5aa8 100644
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
@@ -292,14 +292,18 @@ function bb2diaspora_itemwallwall(&$item) {
// We have to do something similar for wall-to-wall comments. ITEM_WALL|ITEM_ORIGIN indicates that it was posted on this site.
// Regular matrix comments may have one of these bits set, but not both.
- if(($item['mid'] != $item['parent_mid']) && ($item['author_xchan'] != $item['owner_xchan']) && (($item['item_flags'] & (ITEM_WALL|ITEM_ORIGIN)) == (ITEM_WALL|ITEM_ORIGIN)) && (is_array($item['author'])) && $item['author']['xchan_url'] && $item['author']['xchan_name'] && $item['author']['xchan_photo_m']) {
- logger('bb2diaspora_itemwallwall: wall to wall comment',LOGGER_DEBUG);
+ // Update: this is getting triggered way too often and unnecessarily. Commenting out until we find a better solution.
+ // It's not an easy problem. For now we'll live with the mis-attributions, as wall to wall comments are much less frequent
+ // than wall-to-wall posts.
+
+// if(($item['mid'] != $item['parent_mid']) && ($item['author_xchan'] != $item['owner_xchan']) && (($item['item_flags'] & (ITEM_WALL|ITEM_ORIGIN)) == (ITEM_WALL|ITEM_ORIGIN)) && (is_array($item['author'])) && $item['author']['xchan_url'] && $item['author']['xchan_name'] && $item['author']['xchan_photo_m']) {
+// logger('bb2diaspora_itemwallwall: wall to wall comment',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]'
- . '[url=' . $item['author']['xchan_url'] . ']' . $item['author']['xchan_name'] . '[/url]' . "\n\n"
- . $item['body'];
- }
+// $item['body'] = "\n\n"
+// . '[img]' . $item['author']['xchan_photo_m'] . '[/img]'
+// . '[url=' . $item['author']['xchan_url'] . ']' . $item['author']['xchan_name'] . '[/url]' . "\n\n"
+// . $item['body'];
+// }
// $item['author'] might cause a surprise further down the line if it wasn't expected to be here.