mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 04:59:17 +02:00
Library follows and user notifications
This commit is contained in:
parent
a879993280
commit
ecd395d6b0
41 changed files with 1191 additions and 347 deletions
|
@ -74,8 +74,14 @@ def dispatch_inbox(activity):
|
|||
routes.inbox.dispatch(
|
||||
activity.payload,
|
||||
context={
|
||||
"activity": activity,
|
||||
"actor": activity.actor,
|
||||
"inbox_items": list(activity.inbox_items.local().select_related()),
|
||||
"inbox_items": (
|
||||
activity.inbox_items.local()
|
||||
.select_related()
|
||||
.select_related("actor__user")
|
||||
.prefetch_related("activity__object", "activity__target")
|
||||
),
|
||||
},
|
||||
)
|
||||
except Exception:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue