diff options
| author | 2022-11-24 12:38:31 +0100 | |
|---|---|---|
| committer | 2022-11-24 12:38:31 +0100 | |
| commit | 177c362425f83360c63ca361def3267ff98baebf (patch) | |
| tree | 36dcb619d2628cd53cfed24e9c1510a2110383f5 | |
| parent | Fixed hide() to store the object id, not its md5. (diff) | |
| download | snac2-177c362425f83360c63ca361def3267ff98baebf.tar.gz snac2-177c362425f83360c63ca361def3267ff98baebf.tar.xz snac2-177c362425f83360c63ca361def3267ff98baebf.zip | |
Fixed some source comments.
| -rw-r--r-- | data.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -337,7 +337,7 @@ d_char *_object_fn(const char *id) | |||
| 337 | 337 | ||
| 338 | 338 | ||
| 339 | int object_get_by_md5(const char *md5, d_char **obj, const char *type) | 339 | int object_get_by_md5(const char *md5, d_char **obj, const char *type) |
| 340 | /* returns a loaded object, optionally of the requested type */ | 340 | /* returns a stored object, optionally of the requested type */ |
| 341 | { | 341 | { |
| 342 | int status = 404; | 342 | int status = 404; |
| 343 | xs *fn = _object_fn_by_md5(md5); | 343 | xs *fn = _object_fn_by_md5(md5); |
| @@ -373,7 +373,7 @@ int object_get_by_md5(const char *md5, d_char **obj, const char *type) | |||
| 373 | 373 | ||
| 374 | 374 | ||
| 375 | int object_get(const char *id, d_char **obj, const char *type) | 375 | int object_get(const char *id, d_char **obj, const char *type) |
| 376 | /* returns a loaded object, optionally of the requested type */ | 376 | /* returns a stored object, optionally of the requested type */ |
| 377 | { | 377 | { |
| 378 | xs *md5 = xs_md5_hex(id, strlen(id)); | 378 | xs *md5 = xs_md5_hex(id, strlen(id)); |
| 379 | 379 | ||
| @@ -954,7 +954,7 @@ int following_add(snac *snac, char *actor, char *msg) | |||
| 954 | 954 | ||
| 955 | 955 | ||
| 956 | int following_del(snac *snac, char *actor) | 956 | int following_del(snac *snac, char *actor) |
| 957 | /* someone is no longer following us */ | 957 | /* we're not following this actor any longer */ |
| 958 | { | 958 | { |
| 959 | xs *fn = _following_fn(snac, actor); | 959 | xs *fn = _following_fn(snac, actor); |
| 960 | 960 | ||
| @@ -967,7 +967,7 @@ int following_del(snac *snac, char *actor) | |||
| 967 | 967 | ||
| 968 | 968 | ||
| 969 | int following_check(snac *snac, char *actor) | 969 | int following_check(snac *snac, char *actor) |
| 970 | /* checks if someone is following us */ | 970 | /* checks if we are following this actor */ |
| 971 | { | 971 | { |
| 972 | xs *fn = _following_fn(snac, actor); | 972 | xs *fn = _following_fn(snac, actor); |
| 973 | 973 | ||