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,
|
tag = false,
|
||||||
withMuted = false,
|
withMuted = false,
|
||||||
replyVisibility = 'all',
|
replyVisibility = 'all',
|
||||||
params = []
|
params: addtlParams,
|
||||||
}) => {
|
}) => {
|
||||||
const timelineUrls = {
|
const timelineUrls = {
|
||||||
public: MASTODON_PUBLIC_TIMELINE,
|
public: MASTODON_PUBLIC_TIMELINE,
|
||||||
|
@ -716,6 +716,7 @@ const fetchTimeline = ({
|
||||||
const isNotifications = timeline === 'notifications'
|
const isNotifications = timeline === 'notifications'
|
||||||
|
|
||||||
let url = timelineUrls[timeline]
|
let url = timelineUrls[timeline]
|
||||||
|
const params = addtlParams ? [...addtlParams] : []
|
||||||
|
|
||||||
if (timeline === 'user' || timeline === 'media') {
|
if (timeline === 'user' || timeline === 'media') {
|
||||||
url = url(userId)
|
url = url(userId)
|
||||||
|
|
Loading…
Reference in a new issue