|
129 | 129 | <cfif commentParentId eq '' or commentParentId eq 0> |
130 | 130 | <div class="d-flex align-items-start gap-3"> |
131 | 131 | <div> |
132 | | - <img src="#gravatarUrl(email, 96)#" |
| 132 | + <img src="#gravatarUrl(email, 96)#&d=404" |
133 | 133 | class="rounded-circle" |
134 | 134 | style="width:3rem; height:3rem;" |
135 | | - onerror="this.style.display='none';this.nextElementSibling.style.display='flex';" |
| 135 | + onerror="this.classList.add('d-none');this.nextElementSibling.classList.remove('d-none');" |
136 | 136 | alt="avatar"> |
137 | | - <div style="display:none;width:3rem;height:3rem;" |
138 | | - class="d-flex align-items-center justify-content-center #getAvatarColorByLetter(ucase(left(listLast(fullName, ' '), 1)))# text-white rounded-circle fw-bold text-uppercase"> |
| 137 | + <div class="d-none d-flex align-items-center justify-content-center #getAvatarColorByLetter(ucase(left(listLast(fullName, ' '), 1)))# text-white rounded-circle fw-bold text-uppercase" |
| 138 | + style="width:3rem;height:3rem;"> |
139 | 139 | #ucase(left(listLast(fullName, " "), 1))# |
140 | 140 | </div> |
141 | | - </div> |
| 141 | + </div> |
142 | 142 | <div class="p-3 rounded-4 flex-grow-1 bg-light"> |
143 | 143 | <h6 class="fs-16 fw-bold">#fullName#</h6> |
144 | 144 | <cfif findNoCase("```", content) OR findNoCase("##", content) OR findNoCase("**", content) OR findNoCase("__", content) OR findNoCase(">", content)> |
|
186 | 186 | <div class="mt-4"> |
187 | 187 | <div class="d-flex align-items-start gap-3 position-relative" style="margin-left: 70px;"> |
188 | 188 | <div> |
189 | | - <img src="#gravatarUrl(email, 96)#" |
| 189 | + <img src="#gravatarUrl(session.email, 96)#&d=404" |
190 | 190 | class="rounded-circle" |
191 | 191 | style="width:3rem; height:3rem;" |
192 | | - onerror="this.style.display='none';this.nextElementSibling.style.display='flex';" |
| 192 | + onerror="this.classList.add('d-none');this.nextElementSibling.classList.remove('d-none');" |
193 | 193 | alt="avatar"> |
194 | | - <div style="display:none;width:3rem;height:3rem;" |
195 | | - class="d-flex align-items-center justify-content-center #getAvatarColorByLetter(ucase(left(listLast(fullName, ' '), 1)))# text-white rounded-circle fw-bold text-uppercase"> |
196 | | - #ucase(left(listLast(fullName, " "), 1))# |
| 194 | + <div class="d-none d-flex align-items-center justify-content-center #getAvatarColorByLetter(ucase(left(listLast(session.username, ' '), 1)))# text-white rounded-circle fw-bold text-uppercase" |
| 195 | + style="width:3rem;height:3rem;"> |
| 196 | + #ucase(left(listLast(session.username, " "), 1))# |
197 | 197 | </div> |
198 | | - </div> |
| 198 | + </div> |
199 | 199 | <div class="p-3 rounded-4 flex-grow-1 bg-light"> |
200 | | - <h6 class="fs-16 fw-bold">#fullName#</h6> |
| 200 | + <h6 class="fs-16 fw-bold">#session.username#</h6> |
201 | 201 |
|
202 | 202 | <cfif findNoCase("```", content) OR findNoCase("##", content) OR findNoCase("**", content) OR findNoCase("__", content) OR findNoCase(">", content)> |
203 | 203 | <p class="fs-14 fw-normal text-dark markdown-content">#encodeForHTML(content)#</p> |
|
220 | 220 | <cfif isLoggedInUser() AND canUserComment()> |
221 | 221 | <form hx-target="##comment" hx-on:htmx:after-request="handleClear()" hx-swap="beforeend" id="commentForm" hx-post="/blog/comment" class="pt-3 px-1 needs-validation" novalidate hx-validate="true"> |
222 | 222 | <div class="d-flex gap-3 align-items-start"> |
223 | | - <img src="#gravatarUrl(session.email, 96)#" |
| 223 | + <img src="#gravatarUrl(session.email, 96)#&d=404" |
224 | 224 | class="rounded-circle" |
225 | 225 | style="width:3rem; height:3rem;" |
226 | | - onerror="this.style.display='none';this.nextElementSibling.style.display='flex';" |
| 226 | + onerror="this.classList.add('d-none');this.nextElementSibling.classList.remove('d-none');" |
227 | 227 | alt="avatar"> |
228 | | - <div style="display:none;width:3rem;height:3rem;" |
229 | | - class="d-flex align-items-center justify-content-center #getAvatarColorByLetter(ucase(left(listLast(session.USERNAME, ' '), 1)))# text-white rounded-circle fw-bold text-uppercase"> |
230 | | - #ucase(left(listLast(session.USERNAME, " "), 1))# |
| 228 | + <div class="d-none d-flex align-items-center justify-content-center #getAvatarColorByLetter(ucase(left(listLast(session.username, ' '), 1)))# text-white rounded-circle fw-bold text-uppercase" |
| 229 | + style="width:3rem;height:3rem;"> |
| 230 | + #ucase(left(listLast(session.username, " "), 1))# |
231 | 231 | </div> |
232 | 232 | <div class="flex-grow-1 gap-2 d-flex justify-content-between align-items-center"> |
233 | 233 | <input class="form-control" type="hidden" name="blogId" id="blogId" value="#blog.Id#"> |
|
0 commit comments