ISH-656
Created by Jo
1 year ago
Dec 08 2024, 16:16 GMT+1
Updated by Laura Hausmann
11 months ago
Feb 04 2025, 16:42 GMT+1
Refresh remote accounts occasionally

I currently have the odd situation where some accounts that are interacting with me still have their old bio and profile picture.

I think that under the following conditions, we should occasionally trigger a re-fetch; when the account is not followed, and it has been a week since the last fetch, AND one of the following;

  • The account is being searched for, or at the very least, the exact URL / @-handle is inputted in search
  • The account is mentioning a local user in a post
  • A local user starts following the account

This prevents severe desync, and makes sure that some profile pictures/bios etc. are at least updated occasionally, even when Update activities aren't spread for them.

Avatar

This is a good idea! I removed the feature "update on every resolve" (like -js does it) because it was causing severe performance issues for little discernible benefit, but this is a good compromise solution. We currently refresh the user on lookup (your first suggestion), though we only wait a certain time (1000ms I think?) and return the stale data if the refresh isn't complete by then for better UX.

Avatar
Target version: v2025.1 → v2025.1-beta5
Avatar
Target version: v2025.1-beta5 → v2025.1-beta6
Project
Iceshrimp.NET
Priority
Normal
N
Type
Feature
F
State
Triaged
T
Assignee
Laura Hausmann
Avatar
Subsystem
Backend
B
Component
Core services
C
Target version
v2025.1-beta6
V
Released in version
Unreleased