forked from AkkomaGang/akkoma-fe
declare new array each call
This commit is contained in:
parent
3be6281491
commit
d8342114d3
1 changed files with 2 additions and 1 deletions
|
@ -696,7 +696,7 @@ const fetchTimeline = ({
|
|||
tag = false,
|
||||
withMuted = false,
|
||||
replyVisibility = 'all',
|
||||
params = []
|
||||
params: addtlParams,
|
||||
}) => {
|
||||
const timelineUrls = {
|
||||
public: MASTODON_PUBLIC_TIMELINE,
|
||||
|
@ -716,6 +716,7 @@ const fetchTimeline = ({
|
|||
const isNotifications = timeline === 'notifications'
|
||||
|
||||
let url = timelineUrls[timeline]
|
||||
const params = addtlParams ? [...addtlParams] : []
|
||||
|
||||
if (timeline === 'user' || timeline === 'media') {
|
||||
url = url(userId)
|
||||
|
|
Loading…
Reference in a new issue