Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85650756
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/components/nav_panel/nav_panel.js b/src/components/nav_panel/nav_panel.js
index c403441754..aa3f760533 100644
--- a/src/components/nav_panel/nav_panel.js
+++ b/src/components/nav_panel/nav_panel.js
@@ -1,25 +1,25 @@
-import requestFetcher from '../../services/notifications_fetcher/request_fetcher.service.js'
+import followRequestFetcher from '../../services/follow_request_fetcher/follow_request_fetcher.service'
const NavPanel = {
created () {
if (this.currentUser && this.currentUser.locked) {
const store = this.$store
const credentials = store.state.users.currentUser.credentials
- requestFetcher.startFetching({ store, credentials })
+ followRequestFetcher.startFetching({ store, credentials })
}
},
computed: {
currentUser () {
return this.$store.state.users.currentUser
},
chat () {
return this.$store.state.chat.channel
},
followRequestCount () {
return this.$store.state.api.followRequests.length
}
}
}
export default NavPanel
diff --git a/src/services/notifications_fetcher/request_fetcher.service.js b/src/services/follow_request_fetcher/follow_request_fetcher.service.js
similarity index 88%
rename from src/services/notifications_fetcher/request_fetcher.service.js
rename to src/services/follow_request_fetcher/follow_request_fetcher.service.js
index beb6c320dd..125ff3e1df 100644
--- a/src/services/notifications_fetcher/request_fetcher.service.js
+++ b/src/services/follow_request_fetcher/follow_request_fetcher.service.js
@@ -1,21 +1,21 @@
import apiService from '../api/api.service.js'
const fetchAndUpdate = ({ store, credentials }) => {
return apiService.fetchFollowRequests({ credentials })
.then((requests) => {
store.commit('setFollowRequests', requests)
}, () => {})
.catch(() => {})
}
const startFetching = ({credentials, store}) => {
fetchAndUpdate({ credentials, store })
const boundFetchAndUpdate = () => fetchAndUpdate({ credentials, store })
return setInterval(boundFetchAndUpdate, 10000)
}
-const requestFetcher = {
+const followRequestFetcher = {
startFetching
}
-export default requestFetcher
+export default followRequestFetcher
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Aug 30, 5:17 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1737768
Default Alt Text
(2 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment