Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
|
|
Without this, db_upgrade segfaults.
|
|
|
|
It will most probably fail because the object is already there.
|
|
|
|
They weren't shown anyway, but it's better to be sure.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Only delete from each user's cache, not from the global database.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
timeline.idx to private.idx, local.idx to public.idx.
|
|
|
|
|
|
This way, an object can be protected from the purge by creating
a hard link to it.
|