diff options
| author | 2024-02-21 09:22:32 +0100 | |
|---|---|---|
| committer | 2024-02-21 09:22:32 +0100 | |
| commit | e9553379e9922119468bc5ad1f26629c95f57e8d (patch) | |
| tree | 2c3e10e3c1075dc7fa75719f6a955b46777b258e /data.c | |
| parent | In html_timeline(), always pick the msg from the global object storage. (diff) | |
| download | snac2-e9553379e9922119468bc5ad1f26629c95f57e8d.tar.gz snac2-e9553379e9922119468bc5ad1f26629c95f57e8d.tar.xz snac2-e9553379e9922119468bc5ad1f26629c95f57e8d.zip | |
Log (and not notify) repeated likes and announces.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -1107,7 +1107,7 @@ int timeline_add(snac *snac, const char *id, const xs_dict *o_msg) | |||
| 1107 | } | 1107 | } |
| 1108 | 1108 | ||
| 1109 | 1109 | ||
| 1110 | void timeline_admire(snac *snac, const char *id, const char *admirer, int like) | 1110 | int timeline_admire(snac *snac, const char *id, const char *admirer, int like) |
| 1111 | /* updates a timeline entry with a new admiration */ | 1111 | /* updates a timeline entry with a new admiration */ |
| 1112 | { | 1112 | { |
| 1113 | /* if we are admiring this, add to both timelines */ | 1113 | /* if we are admiring this, add to both timelines */ |
| @@ -1116,10 +1116,12 @@ void timeline_admire(snac *snac, const char *id, const char *admirer, int like) | |||
| 1116 | object_user_cache_add(snac, id, "private"); | 1116 | object_user_cache_add(snac, id, "private"); |
| 1117 | } | 1117 | } |
| 1118 | 1118 | ||
| 1119 | object_admire(id, admirer, like); | 1119 | int ret = object_admire(id, admirer, like); |
| 1120 | 1120 | ||
| 1121 | snac_debug(snac, 1, xs_fmt("timeline_admire (%s) %s %s", | 1121 | snac_debug(snac, 1, xs_fmt("timeline_admire (%s) %s %s", |
| 1122 | like ? "Like" : "Announce", id, admirer)); | 1122 | like ? "Like" : "Announce", id, admirer)); |
| 1123 | |||
| 1124 | return ret; | ||
| 1123 | } | 1125 | } |
| 1124 | 1126 | ||
| 1125 | 1127 | ||