1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
)
}
}