summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-08Wrapped too long string literals.default
2022-12-08Updated RELEASE_NOTES.default
2022-12-08Little tweak to previous change to avoid a memleak.default
2022-12-08Merge pull request 'Fix mentions with one @ sign' (#16) from ↵grunfink
kensanata/snac2:fix-mention-with-one-at-sign into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/16
2022-12-07Fix mentions with one @ signAlex Schroeder
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.
2022-12-07Ask for just 1 more entry beyond the current page to test if there are more.default
2022-12-07Fixed last minute typo.default
2022-12-07Minor tweaks to paged timeline output.default
2022-12-07Merge pull request 'Pagination of the private and public page' (#13) from ↵grunfink
kensanata/snac2:pagination into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/13
2022-12-06Fixed memory leak.default
2022-12-06Backport from xs.default
2022-12-06Pagination of the public and private pageAlex Schroeder
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.
2022-12-06Updated TODO.default
2022-12-06Merge pull request 'Add loading="lazy" to all images' (#15) from ↵grunfink
kensanata/snac2:lazy-loading into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/15
2022-12-06Add loading="lazy" to all imagesAlex Schroeder
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
2022-12-06Updated TODO.default
2022-12-05Updated TODO.default
2022-12-05Merge pull request 'Handle /favicon.ico' (#12) from kensanata/snac2:favicon ↵grunfink
into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/12
2022-12-04Updated RELEASE_NOTES.default
2022-12-04Updated documentation.default
2022-12-04New command line option 'resetpwd'.default
2022-12-04New function new_password().default
2022-12-04Handle /favicon.icoAlex Schroeder
Reply with the susie.png.
2022-12-04Merge branch 'master' of triptico.com:git/snac2default
2022-12-04Updated TODO.default
2022-12-04Fixed example.default
2022-12-04Fixed crash in new code (moron me...)default
2022-12-04Updated RELEASE_NOTES.default
2022-12-04Match the CW checkbox status to what is currently configured.default
2022-12-04Merge pull request 'Add an option to always show sensitive content' (#9) ↵grunfink
from kensanata/snac2:optional-cw into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/9
2022-12-04Bumped version.default
2022-12-04Updated RELEASE_NOTES.default
2022-12-04Merge pull request 'Use "new" instead of "New" for log messages' (#11) from ↵grunfink
kensanata/snac2:lower-case-log-messages into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/11
2022-12-04Merge pull request 'Fix arguments in callto xs_fmt' (#10) from ↵grunfink
kensanata/snac2:segfault-in-upgrade into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/10
2022-12-04Use "new" instead of "New" for log messagesAlex Schroeder
The messages for new "Like" and new "Delete" started with an uppercase n instead of a lowercase n like all the other log messages.
2022-12-04Fix arguments in callto xs_fmtAlex Schroeder
Without this, db_upgrade segfaults.
2022-12-04No sensitive content in the public timelineAlex Schroeder
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).
2022-12-04Add an option to always show sensitive contentAlex Schroeder
- 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
2022-12-04Updated TODO.default
2022-12-04Don't create obsolete directories in adduser().default
2022-12-04Updated documentation.default
2022-12-04Updated TODO.default
2022-12-04Version 2.13 RELEASED.default
2022-12-04Set default debug level to 1 for most object db functions.default
2022-12-04Deleted debug code in html_entry().default
2022-12-04Don't show the messages' md5.default
2022-12-03In _object_user_cache(), don't call index_add() if link() fails.default
It will most probably fail because the object is already there.
2022-12-03From timeline_admire(), add to both caches.default
2022-12-03Added :shrug2:default
2022-12-03Don't try to admire empty messages.default