mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:56:02 -04:00
Implement only=highlight
on /notifications
This commit is contained in:
parent
61cd9af09b
commit
4ef222ab61
2 changed files with 10 additions and 2 deletions
|
@ -45,11 +45,12 @@ class NotificationsServlet(RestServlet):
|
|||
|
||||
from_token = parse_string(request, "from", required=False)
|
||||
limit = parse_integer(request, "limit", default=50)
|
||||
only = parse_string(request, "only", required=False)
|
||||
|
||||
limit = min(limit, 500)
|
||||
|
||||
push_actions = yield self.store.get_push_actions_for_user(
|
||||
user_id, from_token, limit
|
||||
user_id, from_token, limit, only_highlight=(only == "highlight")
|
||||
)
|
||||
|
||||
receipts_by_room = yield self.store.get_receipts_for_user_with_orderings(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue