Skip to content

Commit

Permalink
fix missing related event details in share agenda templates [STT-54] (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro authored Jan 31, 2025
1 parent 1006d97 commit 9969566
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions newsroom/wire/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,11 @@ async def share(args: None, params: ItemActionUrlParams, request: Request) -> Re
template_kwargs["linkList"] = [get_links(item) for item in items]
template_kwargs["is_admin"] = is_admin_or_internal(user_dict)

# Import here to prevent circular imports
from newsroom.agenda.utils import get_related_events

template_kwargs["related_events"] = await get_related_events(items[0])

await save_user_notifications(
[
dict(
Expand Down

0 comments on commit 9969566

Please sign in to comment.