forked from AkkomaGang/akkoma-fe
#390: fixed the problem loading other user's media data
This commit is contained in:
parent
1dd7120e16
commit
662e6bda14
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue