fix: trim forum post titles
This commit is contained in:
parent
80a39e7489
commit
9650c0177e
10 changed files with 22 additions and 17 deletions
|
@ -473,14 +473,19 @@
|
|||
}
|
||||
|
||||
setTimeout(() => {
|
||||
update_community_avatar({
|
||||
target: document.getElementById(\"community_to_post_to\"),
|
||||
});
|
||||
const fake_select = {
|
||||
parentElement: document.getElementById(\"community_to_post_to\").parentElement,
|
||||
selectedOptions: [{
|
||||
value: \"{{ selected_community }}\",
|
||||
getAttribute() {
|
||||
return \"{{ selected_stack != 0 }}\";
|
||||
}
|
||||
}],
|
||||
};
|
||||
|
||||
check_community_supports_title({
|
||||
target: document.getElementById(\"community_to_post_to\"),
|
||||
});
|
||||
}, 250);
|
||||
update_community_avatar({ target: fake_select });
|
||||
check_community_supports_title({ target: fake_select });
|
||||
}, 150);
|
||||
|
||||
window.cancel_create_post = async () => {
|
||||
if (
|
||||
|
|
|
@ -2659,5 +2659,5 @@
|
|||
(text "{{ self::full_username(user=owner) }}"))
|
||||
(td (text "{{ post.comment_count }}"))
|
||||
(td (text "{{ ((post.likes + 1) / (post.dislikes + 1))|round(method=\"ceil\", precision=2) }}"))
|
||||
(td (span ("class" "date") (text "{{ post.created }}"))))
|
||||
(td (span ("class" "date short") (text "{{ post.created }}"))))
|
||||
(text "{%- endmacro %}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue