mirror of https://gitlab.com/bashrc2/epicyon
Avoid direct link to mastodon web interface for follow request handle
parent
36907f1e49
commit
fe53b43b60
|
@ -1717,6 +1717,22 @@ h3 {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
.followApproveHandle {
|
||||||
|
border-radius: var(--button-corner-radius);
|
||||||
|
background-color: var(--main-bg-color);
|
||||||
|
border: none;
|
||||||
|
color: var(--main-fg-color);
|
||||||
|
text-align: center;
|
||||||
|
font-size: var(--font-size-header);
|
||||||
|
font-family: 'Arial, Helvetica, sans-serif';
|
||||||
|
padding: var(--button-height-padding);
|
||||||
|
width: 20%;
|
||||||
|
max-width: 200px;
|
||||||
|
min-width: 80px;
|
||||||
|
cursor: pointer;
|
||||||
|
margin: 0 5px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
.followApprove {
|
.followApprove {
|
||||||
border-radius: var(--button-corner-radius);
|
border-radius: var(--button-corner-radius);
|
||||||
background-color: var(--button-approve);
|
background-color: var(--button-approve);
|
||||||
|
@ -2516,6 +2532,22 @@ h3 {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 15px;
|
margin: 15px;
|
||||||
}
|
}
|
||||||
|
.followApprove {
|
||||||
|
border-radius: var(--button-corner-radius);
|
||||||
|
background-color: var(--main-bg-color);
|
||||||
|
border: none;
|
||||||
|
color: var(--main-fg-color);
|
||||||
|
text-align: center;
|
||||||
|
font-size: var(--font-size3);
|
||||||
|
font-family: 'Arial, Helvetica, sans-serif';
|
||||||
|
padding: var(--button-height-padding-mobile);
|
||||||
|
width: 20%;
|
||||||
|
max-width: 400px;
|
||||||
|
min-width: 80px;
|
||||||
|
cursor: pointer;
|
||||||
|
margin: 0 15px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
.followApprove {
|
.followApprove {
|
||||||
border-radius: var(--button-corner-radius);
|
border-radius: var(--button-corner-radius);
|
||||||
background-color: var(--button-approve);
|
background-color: var(--button-approve);
|
||||||
|
@ -3313,6 +3345,22 @@ h3 {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 15px;
|
margin: 15px;
|
||||||
}
|
}
|
||||||
|
.followApproveHandle {
|
||||||
|
border-radius: var(--button-corner-radius);
|
||||||
|
background-color: var(--main-bg-color);
|
||||||
|
border: none;
|
||||||
|
color: var(--main-fg-color);
|
||||||
|
text-align: center;
|
||||||
|
font-size: var(--font-size3);
|
||||||
|
font-family: 'Arial, Helvetica, sans-serif';
|
||||||
|
padding: var(--button-height-padding-tiny);
|
||||||
|
width: 20%;
|
||||||
|
max-width: 400px;
|
||||||
|
min-width: 80px;
|
||||||
|
cursor: pointer;
|
||||||
|
margin: 0 15px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
.followApprove {
|
.followApprove {
|
||||||
border-radius: var(--button-corner-radius);
|
border-radius: var(--button-corner-radius);
|
||||||
background-color: var(--button-approve);
|
background-color: var(--button-approve);
|
||||||
|
|
|
@ -896,16 +896,21 @@ def html_profile(signing_priv_key_pem: str,
|
||||||
if follower_domain not in curr_follower_domains:
|
if follower_domain not in curr_follower_domains:
|
||||||
new_follower_domain = ' ✨'
|
new_follower_domain = ' ✨'
|
||||||
|
|
||||||
|
# Show the handle of the potential follower
|
||||||
|
# being approved, linking to search on that handle
|
||||||
base_path = '/users/' + nickname
|
base_path = '/users/' + nickname
|
||||||
follow_approvals_section += \
|
follow_approvals_section += \
|
||||||
'<div class="container">'
|
'<div class="container">\n' + \
|
||||||
follow_approvals_section += \
|
' <form method="POST" action="' + \
|
||||||
'<a href="' + follower_actor + \
|
base_path + '/searchhandle?page=1">\n' + \
|
||||||
'" tabindex="2">'
|
' <input type="hidden" ' + \
|
||||||
follow_approvals_section += \
|
'name="actor" value="' + \
|
||||||
'<span class="followRequestHandle">' + \
|
follower_actor + '">\n' + \
|
||||||
follower_handle + \
|
' <button type="submit" ' + \
|
||||||
new_follower_domain + '</span></a>'
|
'class="followApproveHandle" ' + \
|
||||||
|
'name="submitSearch" tabindex="2">' + \
|
||||||
|
follower_handle + new_follower_domain + \
|
||||||
|
'</button>\n </form>\n'
|
||||||
|
|
||||||
# show Approve and Deny buttons
|
# show Approve and Deny buttons
|
||||||
follow_approvals_section += \
|
follow_approvals_section += \
|
||||||
|
|
Loading…
Reference in New Issue