diff --git a/backend/routes/friends.py b/backend/routes/friends.py index ccb9b72..038af8e 100644 --- a/backend/routes/friends.py +++ b/backend/routes/friends.py @@ -221,25 +221,6 @@ async def get_activity(user=Depends(get_current_user)): ph = ",".join("?" * len(friend_ids)) # Tagebuch-Einträge der Freunde - diary_rows = conn.execute(f""" - SELECT - 'diary' AS type, - dg.id AS entry_id, - u.id AS user_id, - u.name AS user_name, - u.avatar_url, - d.name AS dog_name, - d.foto_url AS dog_foto, - dg.titel AS text, - dg.created_at - FROM diary dg - JOIN dogs d ON d.id = dg.dog_id - JOIN users u ON u.id = d.user_id - WHERE d.user_id IN ({ph}) - ORDER BY dg.created_at DESC - LIMIT 15 - """, friend_ids).fetchall() - # Gesundheitseinträge der Freunde (nur Typ + Datum, kein Inhalt) health_rows = conn.execute(f""" SELECT @@ -327,7 +308,7 @@ async def get_activity(user=Depends(get_current_user)): } items = [] - for row in [*diary_rows, *health_rows, *walk_rows, *forum_rows, *new_dog_rows]: + for row in [*health_rows, *walk_rows, *forum_rows, *new_dog_rows]: d = dict(row) t = d["type"] items.append({ diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 7df2a7c..bb0d8ed 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '222'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '223'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/js/pages/friends.js b/backend/static/js/pages/friends.js index 50bd5b3..7e25d83 100644 --- a/backend/static/js/pages/friends.js +++ b/backend/static/js/pages/friends.js @@ -206,7 +206,6 @@ window.Page_friends = (() => { const FILTERS = [ { key: 'alle', label: 'Alle' }, - { key: 'diary', label: 'Tagebuch' }, { key: 'walk', label: 'Gassi-Treffen' }, { key: 'forum', label: 'Forum' }, { key: 'health', label: 'Gesundheit' }, @@ -268,7 +267,6 @@ window.Page_friends = (() => { } const _ACTIVITY_PAGE = { - diary: 'diary', health: 'health', walk: 'walks', forum: 'forum',