- ] ++ if attachments == [] do [
- {:meta, [property: "og:image", content: attachment_url(User.avatar_url(user))], []},
- {:meta, [property: "og:image:width", content: 120], []},
- {:meta, [property: "og:image:height", content: 120], []} ] else attachments end
+ ] ++
+ if attachments == [] do
+ [
+ {:meta, [property: "og:image", content: attachment_url(User.avatar_url(user))], []},
+ {:meta, [property: "og:image:width", content: 120], []},
+ {:meta, [property: "og:image:height", content: 120], []}
+ ]
+ else
+ attachments
+ end