aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-20 19:06:02 -0700
committerfriendica <info@friendica.com>2014-10-20 19:06:02 -0700
commit577d84b883b52dde84c18c659a8c4674abe4e94e (patch)
tree8c299928b578fddd5294dca88a4ca198d457bc45
parent3d4728541429b3c6d0630963e26ea4c319605166 (diff)
downloadvolse-hubzilla-577d84b883b52dde84c18c659a8c4674abe4e94e.tar.gz
volse-hubzilla-577d84b883b52dde84c18c659a8c4674abe4e94e.tar.bz2
volse-hubzilla-577d84b883b52dde84c18c659a8c4674abe4e94e.zip
bb2diaspora wallwall comment - match both bits (ITEM_WALL|ITEM_ORIGIN)
-rw-r--r--include/bb2diaspora.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index 9a87de5b2..665fd4622 100644
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
@@ -290,7 +290,7 @@ 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)) && (is_array($item['author'])) && $item['author']['xchan_url'] && $item['author']['xchan_name'] && $item['author']['xchan_photo_m']) {
+ 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"