diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-10-10 07:55:58 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-10-16 13:51:33 +0200 |
commit | 2283d0056155265bb2fbf9cc8c9f10e71355d1ee (patch) | |
tree | 7cf9da65afe7b7c91dc859c74a549ea6e7371026 /ishtar_common/views.py | |
parent | 6221b6260a6b97a03557acbdfcbed2c26304ed3f (diff) | |
download | Ishtar-2283d0056155265bb2fbf9cc8c9f10e71355d1ee.tar.bz2 Ishtar-2283d0056155265bb2fbf9cc8c9f10e71355d1ee.zip |
✨ Display the latest forum entries on the user home page (#5812)
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r-- | ishtar_common/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |