declare new array each call

This commit is contained in:
smitten 2023-08-09 09:25:27 -04:00
parent 3be6281491
commit d8342114d3
Signed by: smitten
GPG Key ID: 1DDD22F13552A07A
1 changed files with 2 additions and 1 deletions

View File

@ -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)