Status if liked

FossilOrigin-Name: 488e0c9cbc9563bc65317f72c5cd034442044d2dd4e8394a7942fab46bdbbe35
This commit is contained in:
me@ow.nekobit.net 2022-02-17 20:34:31 +00:00
parent 0a2739c703
commit 1cb7c65c03
3 changed files with 10 additions and 5 deletions

2
dist/ratfe20.css vendored
View file

@ -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;

View file

@ -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);

View file

@ -17,10 +17,12 @@
<input class="nobutton" type="submit" value="Reply">
</form>
<form action="./" method="post">
<input class="nobutton" type="submit" value="Repeat">
<input class="nobutton %s" type="submit" value="Repeat">
</form>
<form action="./" method="post">
<input class="nobutton" type="submit" value="Like">
<input type="hidden" name="itype" value="like">
<input type="hidden" name="id" value="%s">
<input class="nobutton %s" type="submit" value="Like">
</form>
<form action="./" method="post">
<input class="nobutton" type="submit" value="Quick">