AntonLV %!s(int64=7) %!d(string=hai) anos
pai
achega
44e549e81d

+ 5 - 1
modules/base/general/classes/BxBaseModGeneralModule.php

@@ -1002,8 +1002,12 @@ class BxBaseModGeneralModule extends BxDolModule
         if(empty($sTitle) && !empty($aContentInfo[$CNF['FIELD_TEXT']]))
             $sTitle = $aContentInfo[$CNF['FIELD_TEXT']];
 
+        $iOwnerId = $iAuthorIdAbs;
+        if((int)$aEvent['object_privacy_view'] < 0)
+            $iOwnerId = abs($aEvent['object_privacy_view']);
+
         return array(
-            'owner_id' => $aEvent['owner_id'],
+            'owner_id' => $iOwnerId,
             'object_owner_id' => $iAuthorId,
             'icon' => !empty($CNF['ICON']) ? $CNF['ICON'] : '',
             'sample' => isset($CNF['T']['txt_sample_single_with_article']) ? $CNF['T']['txt_sample_single_with_article'] : $CNF['T']['txt_sample_single'],

+ 6 - 0
modules/boonex/channels/classes/BxCnlAlertsResponse.php

@@ -32,6 +32,12 @@ class BxCnlAlertsResponse extends BxBaseModGroupsAlertsResponse
                  * TODO: $oAlert->aExtras['object'] - contains Metatags object name but further it's used as Module name.
                  * It's working correctly while Metatags object name is equal to Module name.
                  * This should be changed in Ticket #1596
+                 * 
+                 * Also there is a problem that only Content's Author ID is saved, but further it's used to check visibility 
+                 * in case of Context. So, it works correctly when Author posts something with tags in his own profile, 
+                 * but will work incorrecly when Author posts something with tags in some Context (group, event, etc).
+                 * In this case system will use Author's profile as context instead of the real Context 
+                 * in which the content was posted.
                  */
                 $this->_oModule->processHashtag($oAlert->aExtras['meta'], $oAlert->aExtras['object'], $oAlert->iObject, $oAlert->iSender);
             }