aboutsummaryrefslogtreecommitdiff
path: root/src/services/api/api.service.js
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2018-08-24 23:04:36 +0000
committerkaniini <nenolod@gmail.com>2018-08-24 23:04:36 +0000
commit673f0fca3f7898641cdc488e6e6cc9033ca51777 (patch)
treea92128b2779b3971d15699b4410c37687446d480 /src/services/api/api.service.js
parent55650ff7ea9867cdb8adf7077b36bbb8c7bfcb75 (diff)
parentfe906cc3f0c8388bcb2a33be9c72ca5365bde0a5 (diff)
Merge branch 'notifications' into 'develop'
Support qvitter api notifications Closes #129 See merge request pleroma/pleroma-fe!306
Diffstat (limited to 'src/services/api/api.service.js')
-rw-r--r--src/services/api/api.service.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
index eef0fee9..92013448 100644
--- a/src/services/api/api.service.js
+++ b/src/services/api/api.service.js
@@ -27,6 +27,7 @@ const BANNER_UPDATE_URL = '/api/account/update_profile_banner.json'
const PROFILE_UPDATE_URL = '/api/account/update_profile.json'
const EXTERNAL_PROFILE_URL = '/api/externalprofile/show.json'
const QVITTER_USER_TIMELINE_URL = '/api/qvitter/statuses/user_timeline.json'
+const QVITTER_USER_NOTIFICATIONS_URL = '/api/qvitter/statuses/notifications.json'
const BLOCKING_URL = '/api/blocks/create.json'
const UNBLOCKING_URL = '/api/blocks/destroy.json'
const USER_URL = '/api/users/show.json'
@@ -303,8 +304,12 @@ const fetchTimeline = ({timeline, credentials, since = false, until = false, use
public: PUBLIC_TIMELINE_URL,
friends: FRIENDS_TIMELINE_URL,
mentions: MENTIONS_URL,
+ notifications: QVITTER_USER_NOTIFICATIONS_URL,
'publicAndExternal': PUBLIC_AND_EXTERNAL_TIMELINE_URL,
user: QVITTER_USER_TIMELINE_URL,
+ // separate timeline for own posts, so it won't break due to user timeline bugs
+ // really needed only for broken favorites
+ own: QVITTER_USER_TIMELINE_URL,
tag: TAG_TIMELINE_URL
}