UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

Issue with App Filter Stream

Alex Lee · ·
9:06 PM Tuesday, 01 May 2018
High
Hey how's it going guys?

Ok so i seem to be having issues with some thing that doesn't make any sence, The filter by app only works for Admins, not for registered users and it doesn't make any sence.

Every thing is set to Public but users just get:

Nothing is associated with this hashtag. Be the first to connect them!

Any yes that is from the App filter so i'm confused as hell, Admin works perfect i can see any thing and every thing doens't matter if i'm filtereing by Discussions (EasyDicuss) or K2 articles it filters it perfectly but when i login as registered user i get nothing is associated.

Weired as hell and i don't think there are any places to actually define the access rights to stream and filter apps or at least i can't find them. really confusing

I can't give ftp access as its AWS and its only based on keyfiles




EDIT - This is the hack we did if any one else wants it:

on file

/administrator/components/com_easysocial/models/stream.php


if (!$isAdmin) {
// privacy here.
$cond[] = 'AND (';

//public
$cond[] = '(a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_PUBLIC) . ') OR';

//member
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_MEMBER) . ') AND (' . $viewer . ' > 0)) OR ';

if ($sysconfig->get('friends.enabled')) {
//friends of friends
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_FRIENDS_OF_FRIEND) . ') AND ((' . $streamLib->generateMutualFriendSQL($viewer, 'a.`actor_id`') . ') > 0)) OR ';

//friends
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_FRIENDS_OF_FRIEND) . ') AND ((' . $streamLib->generateIsFriendSQL('a.`actor_id`', $viewer) . ') > 0)) OR ';

//friends
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_FRIEND) . ') AND ((' . $streamLib->generateIsFriendSQL('a.`actor_id`', $viewer) . ') > 0)) OR ';
} else {
// fall back to 'member'
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_FRIENDS_OF_FRIEND) . ') AND (' . $viewer . ' > 0)) OR ';
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_FRIEND) . ') AND (' . $viewer . ' > 0)) OR ';
}
//only me
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_ONLY_ME) . ') AND (a.`actor_id` = ' . $viewer . ')) OR ';

// custom
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_CUSTOM) . ') AND (a.`custom_access` LIKE ' . $db->Quote('%,' . $viewer . ',%') . ' )) OR ';

// my own items.
$cond[] = '(a.`actor_id` = ' . $viewer . ')';

// privacy checking end here.
$cond[] = ')';
}
The replies under this section are restricted to logged in users or users with an active subscription with us