diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -1074,7 +1074,7 @@ d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show) | |||
| 1074 | with a link to a cached author, because we need the Follow object | 1074 | with a link to a cached author, because we need the Follow object |
| 1075 | in case we need to unfollow (Undo + original Follow) */ | 1075 | in case we need to unfollow (Undo + original Follow) */ |
| 1076 | 1076 | ||
| 1077 | d_char *_following_fn(snac *snac, char *actor) | 1077 | d_char *_following_fn(snac *snac, const char *actor) |
| 1078 | { | 1078 | { |
| 1079 | xs *md5 = xs_md5_hex(actor, strlen(actor)); | 1079 | xs *md5 = xs_md5_hex(actor, strlen(actor)); |
| 1080 | return xs_fmt("%s/following/%s.json", snac->basedir, md5); | 1080 | return xs_fmt("%s/following/%s.json", snac->basedir, md5); |
| @@ -1116,7 +1116,7 @@ int following_del(snac *snac, char *actor) | |||
| 1116 | } | 1116 | } |
| 1117 | 1117 | ||
| 1118 | 1118 | ||
| 1119 | int following_check(snac *snac, char *actor) | 1119 | int following_check(snac *snac, const char *actor) |
| 1120 | /* checks if we are following this actor */ | 1120 | /* checks if we are following this actor */ |
| 1121 | { | 1121 | { |
| 1122 | xs *fn = _following_fn(snac, actor); | 1122 | xs *fn = _following_fn(snac, actor); |
| @@ -1185,14 +1185,14 @@ d_char *following_list(snac *snac) | |||
| 1185 | } | 1185 | } |
| 1186 | 1186 | ||
| 1187 | 1187 | ||
| 1188 | d_char *_muted_fn(snac *snac, char *actor) | 1188 | d_char *_muted_fn(snac *snac, const char *actor) |
| 1189 | { | 1189 | { |
| 1190 | xs *md5 = xs_md5_hex(actor, strlen(actor)); | 1190 | xs *md5 = xs_md5_hex(actor, strlen(actor)); |
| 1191 | return xs_fmt("%s/muted/%s", snac->basedir, md5); | 1191 | return xs_fmt("%s/muted/%s", snac->basedir, md5); |
| 1192 | } | 1192 | } |
| 1193 | 1193 | ||
| 1194 | 1194 | ||
| 1195 | void mute(snac *snac, char *actor) | 1195 | void mute(snac *snac, const char *actor) |
| 1196 | /* mutes a moron */ | 1196 | /* mutes a moron */ |
| 1197 | { | 1197 | { |
| 1198 | xs *fn = _muted_fn(snac, actor); | 1198 | xs *fn = _muted_fn(snac, actor); |
| @@ -1207,7 +1207,7 @@ void mute(snac *snac, char *actor) | |||
| 1207 | } | 1207 | } |
| 1208 | 1208 | ||
| 1209 | 1209 | ||
| 1210 | void unmute(snac *snac, char *actor) | 1210 | void unmute(snac *snac, const char *actor) |
| 1211 | /* actor is no longer a moron */ | 1211 | /* actor is no longer a moron */ |
| 1212 | { | 1212 | { |
| 1213 | xs *fn = _muted_fn(snac, actor); | 1213 | xs *fn = _muted_fn(snac, actor); |
| @@ -1218,7 +1218,7 @@ void unmute(snac *snac, char *actor) | |||
| 1218 | } | 1218 | } |
| 1219 | 1219 | ||
| 1220 | 1220 | ||
| 1221 | int is_muted(snac *snac, char *actor) | 1221 | int is_muted(snac *snac, const char *actor) |
| 1222 | /* check if someone is muted */ | 1222 | /* check if someone is muted */ |
| 1223 | { | 1223 | { |
| 1224 | xs *fn = _muted_fn(snac, actor); | 1224 | xs *fn = _muted_fn(snac, actor); |