From 2283d0056155265bb2fbf9cc8c9f10e71355d1ee Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 10 Oct 2024 07:55:58 +0200 Subject: ✨ Display the latest forum entries on the user home page (#5812) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/views.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/views.py') diff --git a/ishtar_common/views.py b/ishtar_common/views.py index a6c3b373d..557fb1412 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -82,6 +82,7 @@ from ishtar_common.utils import ( get_field_labels_from_path, get_person_gdpr_log, get_random_item_image_link, + get_news_feed, shortify, dict_to_tuple, put_session_message, @@ -207,6 +208,7 @@ def index(request): ) ) authenticated = request.user.is_authenticated + dct["news_feed"] = get_news_feed() display_random_image = authenticated and profile.homepage_random_image_available if display_random_image: dct["display_random_image"] = True -- cgit v1.2.3