Merge branch 'issue-390-load-other-user-media-data' into 'develop'

#390: fixed the problem loading other user's media data

Closes #390

See merge request pleroma/pleroma-fe!613
This commit is contained in:
Shpuld Shpludson 2019-02-25 16:08:53 +00:00
commit baa09002b5

View File

@ -126,7 +126,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
// This makes sure that user timeline won't get data meant for other // This makes sure that user timeline won't get data meant for other
// user. I.e. opening different user profiles makes request which could // user. I.e. opening different user profiles makes request which could
// return data late after user already viewing different user profile // return data late after user already viewing different user profile
if (timeline === 'user' && timelineObject.userId !== userId) { if ((timeline === 'user' || timeline === 'media') && timelineObject.userId !== userId) {
return return
} }