diff options
| author | 2024-08-29 07:45:22 +0200 | |
|---|---|---|
| committer | 2024-08-29 07:45:22 +0200 | |
| commit | 8ea199a9966fd661762de89fbbe7313de318872f (patch) | |
| tree | 79dc7cd51de9a72dc4d592e7a18c0881d9008786 /data.c | |
| parent | The list of pinned posts now works. (diff) | |
| download | snac2-8ea199a9966fd661762de89fbbe7313de318872f.tar.gz snac2-8ea199a9966fd661762de89fbbe7313de318872f.tar.xz snac2-8ea199a9966fd661762de89fbbe7313de318872f.zip | |
The list of bookmarked posts also work.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -1583,6 +1583,13 @@ int unbookmark(snac *user, const char *id) | |||
| 1583 | } | 1583 | } |
| 1584 | 1584 | ||
| 1585 | 1585 | ||
| 1586 | xs_list *bookmark_list(snac *user) | ||
| 1587 | /* return the lists of bookmarked posts */ | ||
| 1588 | { | ||
| 1589 | return object_user_cache_list(user, "bookmark", XS_ALL, 1); | ||
| 1590 | } | ||
| 1591 | |||
| 1592 | |||
| 1586 | /** pinning **/ | 1593 | /** pinning **/ |
| 1587 | 1594 | ||
| 1588 | int is_pinned(snac *user, const char *id) | 1595 | int is_pinned(snac *user, const char *id) |