diff options
| author | grunfink <grunfink@comam.es> | 2025-11-29 06:17:27 +0100 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-11-29 06:17:27 +0100 |
| commit | 46bb87c2b54c9b9d9a4cd462b47158ede1eec170 (patch) | |
| tree | b02f6151ccf77f9dbcab6e204e10f3b2eb5fe5fc /data.c | |
| parent | 5c2c7b27aca8bec59f90007481e5e2c6e961827f (diff) | |
Moved is_msg_mine() to data.c.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1358,6 +1358,20 @@ int pending_count(snac *user) } +int is_msg_mine(snac *user, const char *id) +/* returns true if a post id is by the given user */ +{ + int ret = 0; + + if (xs_is_string(id)) { + xs *s1 = xs_fmt("%s/", user->actor); + ret = xs_startswith(id, s1); + } + + return ret; +} + + /** timeline **/ double timeline_mtime(snac *snac) |