UPDATES EasyBlog 6.0.11 Released! Update to the latest version 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
Hey there,

I wanted to make a change that "likes" do not bring up stream posts back to the top. There I picked the file /components/com_easysocial/controllers/likes.php and in line 146 (line 4 down below the code) I replace "true" with "false".

Did this happen to have an effect on anything else or can this be done this way?


Content of file line 142-162:

// Now we need to update the associated stream id from the liked object
if ($streamId) {

$doUpdate = false;

if ($type == 'photos') {
$sModel = ES::model('Stream');
$totalItem = $sModel->getStreamItemsCount($streamId);

if ($totalItem > 1) {
$doUpdate = false;
}
}

if ($doUpdate) {
$stream = ES::stream();
$stream->updateModified($streamId, $this->my->id, SOCIAL_STREAM_LAST_ACTION_LIKE);
}
}
}
The replies under this section are restricted to logged in users or users with an active subscription with us