|
@@ -108,6 +108,7 @@ const PLEROMA_POST_ANNOUNCEMENT_URL = '/api/v1/pleroma/admin/announcements'
|
|
|
const PLEROMA_EDIT_ANNOUNCEMENT_URL = id => `/api/v1/pleroma/admin/announcements/${id}`
|
|
|
const PLEROMA_DELETE_ANNOUNCEMENT_URL = id => `/api/v1/pleroma/admin/announcements/${id}`
|
|
|
const PLEROMA_SCROBBLES_URL = id => `/api/v1/pleroma/accounts/${id}/scrobbles`
|
|
|
+const PLEROMA_USER_FAVORITES_TIMELINE_URL = id => `/api/v1/pleroma/accounts/${id}/favourites`
|
|
|
|
|
|
const PLEROMA_ADMIN_CONFIG_URL = '/api/pleroma/admin/config'
|
|
|
const PLEROMA_ADMIN_DESCRIPTIONS_URL = '/api/pleroma/admin/config/descriptions'
|
|
@@ -690,6 +691,7 @@ const fetchTimeline = ({
|
|
|
media: MASTODON_USER_TIMELINE_URL,
|
|
|
list: MASTODON_LIST_TIMELINE_URL,
|
|
|
favorites: MASTODON_USER_FAVORITES_TIMELINE_URL,
|
|
|
+ publicFavorites: PLEROMA_USER_FAVORITES_TIMELINE_URL,
|
|
|
tag: MASTODON_TAG_TIMELINE_URL,
|
|
|
bookmarks: MASTODON_BOOKMARK_TIMELINE_URL
|
|
|
}
|
|
@@ -698,6 +700,10 @@ const fetchTimeline = ({
|
|
|
|
|
|
let url = timelineUrls[timeline]
|
|
|
|
|
|
+ if (timeline === 'favorites' && userId) {
|
|
|
+ url = timelineUrls.publicFavorites(userId)
|
|
|
+ }
|
|
|
+
|
|
|
if (timeline === 'user' || timeline === 'media') {
|
|
|
url = url(userId)
|
|
|
}
|