Load right stream with Show More on mobile

- Load aspects stream if user is on this stream instead of loading the
    activity stream
This commit is contained in:
Erwan Guyader 2014-06-16 18:13:05 +02:00
parent f23fb6b6cb
commit 499eb6a9bb

View file

@ -13,6 +13,9 @@ module StreamHelper
elsif controller.instance_of?(StreamsController)
if current_page?(:stream)
stream_path(:max_time => time_for_scroll(@stream))
elsif current_page?(:aspects_stream)
aspect_ids = (session[:a_ids] || [])
aspects_stream_path(:max_time => time_for_scroll(@stream), a_ids: aspect_ids)
else
activity_stream_path(:max_time => time_for_scroll(@stream))
end