mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo.git
synced 2026-09-21 16:52:01 -07:00
Merge commit '5c95e4bf57' into swarmforge-refactorer
This commit is contained in:
@@ -149,11 +149,9 @@ class NotificationsQuery {
|
||||
|
||||
// Return paginated notifications for addr, sorted newest-first.
|
||||
async listNotifications (addr, { limit, offset } = {}) {
|
||||
const [follows, likes, replies] = await Promise.all([
|
||||
this._collectFollowNotifications(addr),
|
||||
this._collectLikeNotifications(addr),
|
||||
this._collectReplyNotifications(addr)
|
||||
])
|
||||
const follows = await this._collectFollowNotifications(addr)
|
||||
const likes = await this._collectLikeNotifications(addr)
|
||||
const replies = await this._collectReplyNotifications(addr)
|
||||
|
||||
const all = this._sortNotifications(follows.concat(likes).concat(replies))
|
||||
const total = all.length
|
||||
|
||||
Reference in New Issue
Block a user