~ knotless Search/
↑↓ move↵ open⇧↵ all results

geesawra.industries/old-fella

Old people's social media app

0
1
main
23 lines · 638 B Raw History
import SwiftUI

struct AuthorAvatar: View {
    @Environment(AppModel.self) private var model
    let author: Post.Author
    let size: CGFloat
    var allowsImage = true
    var ringWidth: CGFloat = 1.5

    var body: some View {
        AccountAvatar(
            account: Account(
                handle: author.handle,
                displayName: author.name,
                id: author.id,
                avatarURL: allowsImage && model.contentDecision(author: author)?.ui(.avatar).blur == false
                    ? author.avatarURL : nil
            ),
            size: size,
            ringWidth: ringWidth
        )
    }
}