From 1cb7c65c039c6db7d89640b9b8addf7323b08c6f Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Thu, 17 Feb 2022 20:34:31 +0000 Subject: [PATCH] Status if liked FossilOrigin-Name: 488e0c9cbc9563bc65317f72c5cd034442044d2dd4e8394a7942fab46bdbbe35 --- dist/ratfe20.css | 2 +- src/status.c | 7 +++++-- static/status.html | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dist/ratfe20.css b/dist/ratfe20.css index 500dc8f..a4359b3 100644 --- a/dist/ratfe20.css +++ b/dist/ratfe20.css @@ -239,7 +239,6 @@ ul li:first-child a.sidebarbtn { margin: 8px 0 2px 0; display: flex; - } @@ -443,6 +442,7 @@ ul li:first-child a.sidebarbtn border-radius: 3px; } +.status-interact .nobutton-active, .nobutton:hover { background-color: #aa0000 !important; diff --git a/src/status.c b/src/status.c index eebfc0e..d43df3b 100644 --- a/src/status.c +++ b/src/status.c @@ -81,8 +81,11 @@ char* construct_statuses(struct mstdnt_status* statuses, size_t size, size_t* re statuses[i].account.avatar, statuses[i].account.display_name, /* Username */ statuses[i].account.acct, /* Account */ - "Public?", /* visibility */ - statuses[i].content); + "Public", /* visibility */ + statuses[i].content, + statuses[i].reblogged ? "nobutton-active" : "", + statuses[i].id, + statuses[i].favourited ? "nobutton-active" : ""); if (parse_size == -1) /* Malloc error */ { if (result) free(result); diff --git a/static/status.html b/static/status.html index 20aae9b..9e23605 100644 --- a/static/status.html +++ b/static/status.html @@ -17,10 +17,12 @@
- +
- + + +