Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F325876
follow_request_fetcher.service.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
625 B
Referenced Files
None
Subscribers
None
follow_request_fetcher.service.js
View Options
import
apiService
from
'../api/api.service.js'
const
fetchAndUpdate
=
({
store
,
credentials
})
=>
{
return
apiService
.
fetchFollowRequests
({
credentials
})
.
then
((
requests
)
=>
{
store
.
commit
(
'setFollowRequests'
,
requests
)
store
.
commit
(
'addNewUsers'
,
requests
)
},
()
=>
{})
.
catch
(()
=>
{})
}
const
startFetching
=
({
credentials
,
store
})
=>
{
fetchAndUpdate
({
credentials
,
store
})
const
boundFetchAndUpdate
=
()
=>
fetchAndUpdate
({
credentials
,
store
})
return
setInterval
(
boundFetchAndUpdate
,
10000
)
}
const
followRequestFetcher
=
{
startFetching
}
export
default
followRequestFetcher
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 4:26 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
96662
Default Alt Text
follow_request_fetcher.service.js (625 B)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment