Commit graph

2332 commits

Author SHA1 Message Date
default
4726de661b Fixed memory leak. 2022-12-06 19:28:29 +01:00
default
c60a4d9b0b Backport from xs. 2022-12-06 19:12:26 +01:00
Alex Schroeder
a221237637 Pagination of the public and private page
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-06 18:27:33 +01:00
default
345f64494a Updated TODO. 2022-12-06 15:33:01 +01:00
grunfink
9fa3fca174 Merge pull request 'Add loading="lazy" to all images' (#15) from kensanata/snac2:lazy-loading into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/15
2022-12-06 13:29:50 +00:00
Alex Schroeder
b60addc4e6 Add loading="lazy" to all images
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-06 12:25:08 +01:00
default
8fb31802b7 Updated TODO. 2022-12-06 06:20:37 +01:00
default
deced47b88 Updated TODO. 2022-12-05 12:12:35 +01:00
grunfink
5041014a39 Merge pull request 'Handle /favicon.ico' (#12) from kensanata/snac2:favicon into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/12
2022-12-05 08:04:20 +00:00
default
d159765aa3 Updated RELEASE_NOTES. 2022-12-04 21:32:12 +01:00
default
32d9f0f870 Updated documentation. 2022-12-04 21:30:14 +01:00
default
48ebc54b6e New command line option 'resetpwd'. 2022-12-04 21:26:24 +01:00
default
7787a2ded9 New function new_password(). 2022-12-04 21:14:18 +01:00
Alex Schroeder
eda9e94086 Handle /favicon.ico
Reply with the susie.png.
2022-12-04 20:16:40 +01:00
default
6714084011 Merge branch 'master' of triptico.com:git/snac2 2022-12-04 12:25:16 +01:00
default
2d01443472 Updated TODO. 2022-12-04 12:25:11 +01:00
default
05f7ab6408 Fixed example. 2022-12-04 12:18:07 +01:00
default
0e861196a1 Fixed crash in new code (moron me...) 2022-12-04 12:04:37 +01:00
default
926e903464 Updated RELEASE_NOTES. 2022-12-04 11:53:15 +01:00
default
785c859ce3 Match the CW checkbox status to what is currently configured. 2022-12-04 11:50:20 +01:00
grunfink
1c8ff95670 Merge pull request 'Add an option to always show sensitive content' (#9) from kensanata/snac2:optional-cw into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/9
2022-12-04 10:39:32 +00:00
default
7e07b0192c Bumped version. 2022-12-04 11:38:41 +01:00
default
fb4d1f0b9c Updated RELEASE_NOTES. 2022-12-04 11:38:19 +01:00
grunfink
881d05e06c Merge pull request 'Use "new" instead of "New" for log messages' (#11) from kensanata/snac2:lower-case-log-messages into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/11
2022-12-04 09:52:53 +00:00
grunfink
dcfc527a85 Merge pull request 'Fix arguments in callto xs_fmt' (#10) from kensanata/snac2:segfault-in-upgrade into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/10
2022-12-04 09:45:51 +00:00
Alex Schroeder
20f862a651 Use "new" instead of "New" for log messages
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-04 10:35:01 +01:00
Alex Schroeder
5b1d2bebe9 Fix arguments in callto xs_fmt
Without this, db_upgrade segfaults.
2022-12-04 10:23:48 +01:00
Alex Schroeder
a3fa7dbaec No sensitive content in the public timeline
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-04 10:05:53 +01:00
Alex Schroeder
e4c26715a1 Add an option to always show sensitive content
- 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-04 10:05:53 +01:00
default
4b6e1df907 Updated TODO. 2022-12-04 07:35:07 +01:00
default
fd2b1509a8 Don't create obsolete directories in adduser(). 2022-12-04 07:19:45 +01:00
default
30e3f2fc3d Updated documentation. 2022-12-04 07:18:24 +01:00
default
70901fa168 Updated TODO. 2022-12-04 06:50:56 +01:00
default
70d1cf784a Version 2.13 RELEASED. 2022-12-04 06:43:46 +01:00
default
d023807942 Set default debug level to 1 for most object db functions. 2022-12-04 06:40:17 +01:00
default
bc0f9d116f Deleted debug code in html_entry(). 2022-12-04 06:37:30 +01:00
default
144d3c29a9 Don't show the messages' md5. 2022-12-04 06:34:42 +01:00
default
002bec4def In _object_user_cache(), don't call index_add() if link() fails.
It will most probably fail because the object is already there.
2022-12-03 21:59:19 +01:00
default
85d0f40e65 From timeline_admire(), add to both caches. 2022-12-03 21:34:10 +01:00
default
2bf9134fda Added :shrug2: 2022-12-03 20:54:44 +01:00
default
bd0149ee0d Don't try to admire empty messages. 2022-12-03 20:45:58 +01:00
default
76bfc366ea Updated TODO. 2022-12-03 20:31:41 +01:00
default
3929778ea1 Don't store messages in public/ that are not public.
They weren't shown anyway, but it's better to be sure.
2022-12-03 20:28:23 +01:00
default
3c95c8a7a3 Set default max_timeline_entries to 128. 2022-12-03 20:09:45 +01:00
default
30e1a8ce08 Add this user admires to the public timeline. 2022-12-03 19:37:52 +01:00
default
c70bd2a85d Show the development version. 2022-12-03 19:28:16 +01:00
default
67a81a7bf9 Upgrade timeline/ to private/. 2022-12-03 18:41:44 +01:00
default
f205d20688 Always show who boosted something, not only when it's on level 0. 2022-12-03 18:08:44 +01:00
default
d00026ac06 Upgraded local/ to public/. 2022-12-03 17:58:49 +01:00
default
af6d31ff83 New function timeline_simple_list(). 2022-12-03 07:27:26 +01:00