@kcne commented on this pull request.
> + SELECT DATE_TRUNC('day', diary_comments.created_at) AS day FROM
> diary_comments WHERE user_id = :user_id AND visible = true
+ UNION ALL
+ SELECT DATE_TRUNC('day', gpx_files.timestamp) AS day FROM gpx_files
WHERE user_id = :user_id
+ SQL
+ end
+
+ # Fetch activities for specific days
+ private_class_method def self.fetch_activities(user_id, days)
+ [
+ fetch_changesets(user_id, days),
+ fetch_diary_entries(user_id, days),
+ fetch_changeset_comments(user_id, days),
+ fetch_note_comments(user_id, days),
+ fetch_diary_comments(user_id, days),
+ fetch_gpx_files(user_id, days)
+ ].flatten
Fixed.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5761#discussion_r2010249229
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5761/review/2710508...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev