wip bsky client for the web & android
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(profile): sort front logs by date

vi 4e588c0a 51e33b22

+6 -1
+6 -1
src/views/Profile/ProfileView.vue
··· 246 246 isSystem.value = true 247 247 } 248 248 249 - const lastLog = frontLog.records[0]?.value as HostPluralFrontLog.Main 249 + const logs = frontLog.records.map((record) => record.value) as HostPluralFrontLog.Main[] 250 + const orderedLogs = logs.sort( 251 + (a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime(), 252 + ) 253 + 254 + const lastLog = orderedLogs[0] 250 255 if (!lastLog) return 251 256 252 257 const fronterIds = lastLog.fronters