diff options
| author | Xe Iaso <me@christine.website> | 2022-11-12 13:00:01 -0500 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2022-11-12 13:00:01 -0500 |
| commit | ab86d9bf5d9accf681588dd48df581d77126708c (patch) | |
| tree | 81ed60b3980764ae90fa01fe21a2345da93a9bed /lib/xesite_templates/src | |
| parent | 7a8123435b381db82b557d630bdae5df77b86608 (diff) | |
| download | xesite-ab86d9bf5d9accf681588dd48df581d77126708c.tar.xz xesite-ab86d9bf5d9accf681588dd48df581d77126708c.zip | |
rip twitter
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'lib/xesite_templates/src')
| -rw-r--r-- | lib/xesite_templates/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/xesite_templates/src/lib.rs b/lib/xesite_templates/src/lib.rs index e744531..5e6fee2 100644 --- a/lib/xesite_templates/src/lib.rs +++ b/lib/xesite_templates/src/lib.rs @@ -190,7 +190,7 @@ pub fn toot_embed(u: User, t: Toot) -> Markup { br; } - a href=(t.url) { "Link" } + a href=(t.url.unwrap_or(t.id)) { "Link" } }; html! { .media { @@ -202,6 +202,9 @@ pub fn toot_embed(u: User, t: Toot) -> Markup { .media-body { .media-heading { (u.name) + @if u.id == "https://pony.social/users/cadey" { + img src="https://cdn.xeiaso.net/file/christine-static/blog/verified.png" style="height=1.5ch;width=1.5ch"; + } " " a href=(u.url) {"@" (u.preferred_username)} br; |
