Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kensanata/snac2:fix-mention-with-one-at-sign into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/16
|
|
In a mention like the following, the old code had a problem: It would
split the name by '@' and get a list of two elements. Since this is
less than three, it would then try to get the domain name from the
href ("social.alexschroeder.ch") and concatenate it with the name,
resulting in "alex@social.alexschroeder.ch@social.alexschroeder.ch".
The reason was that the code expects an initial "@". In that case,
splitting "@alex@social.alexschroeder.ch" would result in three
elements, and no domain name guessing would happen. If, on the other
hand, the name was "@foo" then finding the domain name in the URL and
appending it so that you get @foo@domain.name is the correct solution.
"tag": [
{
"type": "Mention",
"href": "https://social.alexschroeder.ch/alex",
"name": "alex@social.alexschroeder.ch"
}
],
The fix consists in prepending an "@" if the name does not start with
"@" and leaving the rest of the code unchanged.
|
|
|
|
|
|
|
|
kensanata/snac2:pagination into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/13
|
|
|
|
|
|
Use the query parameters skip and show to control what you can see,
e.g. /alex/admin?skip=0&show=4
Don't use or save the timeline cache if either is set.
The following functions were changed from accepting a single max
parameter to accepting both skip and show:
timeline_simple_list, timeline_list, index_list_desc.
|
|
|
|
kensanata/snac2:lazy-loading into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/15
|
|
Only load images when they're visible.
"The loading attribute on an <img> element … can be used to instruct
the browser to defer loading of images/iframes that are off-screen
until the user scrolls near them."
https://developer.mozilla.org/en-US/docs/Web/Performance/Lazy_loading#images_and_iframes
|
|
|
|
|
|
into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/12
|
|
|
|
|
|
|
|
|
|
Reply with the susie.png.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from kensanata/snac2:optional-cw into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/9
|
|
|
|
|
|
kensanata/snac2:lower-case-log-messages into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/11
|
|
kensanata/snac2:segfault-in-upgrade into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/10
|
|
The messages for new "Like" and new "Delete" started with an uppercase
n instead of a lowercase n like all the other log messages.
|
|
Without this, db_upgrade segfaults.
|
|
Don't use h3 in the public timeline. Use the details tag, as before,
but default to "open" if the config setting is set. Only do this in
the private timeline (where local == 0, as set by html_get_handler).
|
|
- add a cw key to user.json
- add a cw checkbox to user setup form
- handle the cw parameter when updating user setup
- when rendering an entry, look at the cw config: if set, use a h3
heading for the summary; otherwise use details + summar + SENSITIVE
CONTENT like before
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|