on #Mitra the post refresh option also runs the load replies feature that you can see in the web ui
Conversation
Notices
-
Embed this notice
fedicat (fedicat@pc.cafe)'s status on Wednesday, 29-Jan-2025 04:29:32 JST fedicat
-
Embed this notice
silverpill (silverpill@mitra.social)'s status on Wednesday, 29-Jan-2025 04:29:30 JST silverpill
@fedicat How does "Refresh" option work? I didn't know it's possible :)
-
Embed this notice
silverpill (silverpill@mitra.social)'s status on Wednesday, 29-Jan-2025 05:05:40 JST silverpill
@fedicat Ah, so it doesn't attempt to retrieve the post from the remote server. Understood
-
Embed this notice
fedicat (fedicat@pc.cafe)'s status on Wednesday, 29-Jan-2025 05:05:41 JST fedicat
@silverpill it just does another retrieval of the post by ID, in case there are any changes that weren't immediately returned or for whatever reason the displayed post isn't up to date, so I figured that's a good place to throw in load-replies (first part is just mitra)
public func refresh(_ post: Post) async throws -> Post {
if supportsLoadConversation {
try await loadConversation(of: post)
}
let post = try await client.refresh(post)
addAccounts(post)
return post
}
-
Embed this notice