Commit graph

222 commits

Author SHA1 Message Date
default
bad9f3a8c6 Renamed timeline_get() to timeline_get_by_md5(), as that is what id does. 2023-02-05 17:39:40 +01:00
default
12aedfadfd New function timeline_get(). 2023-02-05 13:35:50 +01:00
default
d49089898f Elevated debug level to bad user / invalid user messages. 2023-02-03 16:51:59 +01:00
default
928f22fbba Email notifications have been moved to the global queue. 2023-02-02 05:21:16 +01:00
default
c639553836 New function queue() (the global queue). 2023-02-02 05:07:20 +01:00
default
106c94ef86 queue() renamed to user_queue(). 2023-02-02 04:47:59 +01:00
default
ee77e45abb dequeue() does not need a snac argument. 2023-02-02 04:44:30 +01:00
default
56c4711caf enqueue_output() adds the keyid and seckey args to the q_item. 2023-02-02 04:23:56 +01:00
default
f0ef1d4115 Reworked enqueue_message(). 2023-01-31 21:54:50 +01:00
default
274ae3d142 Reworked enqueue_email(). 2023-01-31 21:49:43 +01:00
default
4e62b409af Reworked enqueue_output(). 2023-01-31 21:15:16 +01:00
default
0233d73248 Started rewriting the queue. 2023-01-31 21:03:59 +01:00
default
94c4790bd7 Unified queue message field names. 2023-01-31 20:22:36 +01:00
default
74d30a561c Some symbol renaming. 2023-01-31 18:33:45 +01:00
default
2d7074aeb0 Deleted old paths to purge. 2023-01-31 18:28:52 +01:00
default
a38c7aeadc Updated year in copyright notices. 2023-01-17 09:50:16 +01:00
default
6406877af1 Usage of unveil() and pledge() can be disabled from config. 2023-01-13 14:18:23 +01:00
Andrew Alderwick
3cb1725225 Added OpenBSD's unveil() and pledge() support. 2023-01-13 13:25:14 +01:00
default
bb0d8f2a27 Backport from xs. 2023-01-12 09:28:02 +01:00
default
40b3f739d2 Deleted unused argument in timeline_admire(). 2023-01-11 20:47:36 +01:00
default
75f8554e38 Deleted unused arguments in timeline_add(). 2023-01-11 20:40:13 +01:00
default
47e6e47323 The purge ttl for stray global objects have been shortened. 2023-01-04 09:41:02 +01:00
default
bc7a6c2708 Log write errors in _object_add() more prominently. 2022-12-18 17:51:23 +01:00
default
25acaf178c Replaced all calls to post() with enqueue_message(). 2022-12-16 07:16:00 +01:00
default
427f7341fa New function enqueue_message(). 2022-12-16 07:09:25 +01:00
default
a0459df6ea Don't create a parent index if it already exists. 2022-12-15 10:52:09 +01:00
default
746624144c Fixed a deletion error. 2022-12-14 05:36:30 +01:00
default
6056077031 Fixed crash when unfollowing. 2022-12-13 16:02:41 +01:00
default
83a68d635d New function index_len(). 2022-12-10 11:19:26 +01:00
grunfink
060a9fcb3c Merge pull request 'Pagination of the private and public page' (#13) from kensanata/snac2:pagination into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/13
2022-12-07 08:33:09 +00:00
default
4726de661b Fixed memory leak. 2022-12-06 19:28:29 +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
7787a2ded9 New function new_password(). 2022-12-04 21:14:18 +01:00
Alex Schroeder
5b1d2bebe9 Fix arguments in callto xs_fmt
Without this, db_upgrade segfaults.
2022-12-04 10:23:48 +01:00
default
d023807942 Set default debug level to 1 for most object db functions. 2022-12-04 06:40:17 +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
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
30e1a8ce08 Add this user admires to the public timeline. 2022-12-03 19:37:52 +01:00
default
67a81a7bf9 Upgrade timeline/ to private/. 2022-12-03 18:41: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
default
adfc9217d7 Use xs_set_result() in timeline_top_level(). 2022-12-02 21:24:17 +01:00
default
0c525335ee New function object_here_by_md5(). 2022-12-02 21:19:46 +01:00
default
908e068e36 New function object_parent(). 2022-12-02 21:16:34 +01:00
default
a133427e8d More old code cleaning. 2022-12-02 20:56:51 +01:00
default
3e2891b100 Renamed timeline_here() to object_here(). 2022-12-02 20:44:51 +01:00
default
4819c4248d More old code deletions. 2022-12-02 20:39:31 +01:00
default
67d57252ea The old timeline is no longer maintained. 2022-12-02 20:28:27 +01:00
default
c00e3afcdc Big data storage change. 2022-12-02 19:14:59 +01:00