6 ms·
Matching logic (simplified) • It uses currentWeather.main, description, temperature, time of day, and language. • Filters local DB messages (listWeatherCommen
by tsuyoshi_k 1y ago
Matching logic (simplified)
• It uses currentWeather.main, description, temperature, time of day, and language.
• Filters local DB messages (listWeatherComments) using:
• Weather match (e.g. “Clear”, “Rainy”)
• Temp range (±3°C)
• Time window (±1.5h)
• Language match (e.g. locale.value)
• Also pulls from iOS App data (via GraphQL endpoint) and merges results.
• Adds createdAtMs and sorts descending.
• All matching posts are shown in the main feed — beautiful short messages from strangers in similar weather.