diff options
| author | 2025-05-18 08:23:48 +0200 | |
|---|---|---|
| committer | 2025-05-18 08:23:48 +0200 | |
| commit | ee84140ecceb07dad8ea36cc5aa29b91bbb48a56 (patch) | |
| tree | 077e8defca025ed364741a10b7557c02c554ab0f /data.c | |
| parent | mastoapi: Also process the types[] argument in notifications. (diff) | |
| download | penes-snac2-ee84140ecceb07dad8ea36cc5aa29b91bbb48a56.tar.gz penes-snac2-ee84140ecceb07dad8ea36cc5aa29b91bbb48a56.tar.xz penes-snac2-ee84140ecceb07dad8ea36cc5aa29b91bbb48a56.zip | |
Added a pending follow request count next to the "people" link.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -1335,6 +1335,16 @@ xs_list *pending_list(snac *user) | |||
| 1335 | } | 1335 | } |
| 1336 | 1336 | ||
| 1337 | 1337 | ||
| 1338 | int pending_count(snac *user) | ||
| 1339 | /* returns the number of pending follow confirmations */ | ||
| 1340 | { | ||
| 1341 | xs *spec = xs_fmt("%s/pending/""*.json", user->basedir); | ||
| 1342 | xs *l = xs_glob(spec, 0, 0); | ||
| 1343 | |||
| 1344 | return xs_list_len(l); | ||
| 1345 | } | ||
| 1346 | |||
| 1347 | |||
| 1338 | /** timeline **/ | 1348 | /** timeline **/ |
| 1339 | 1349 | ||
| 1340 | double timeline_mtime(snac *snac) | 1350 | double timeline_mtime(snac *snac) |