summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-23 06:05:35 +0200
committerdefault <nobody@localhost>2023-04-23 06:05:35 +0200
commit88850bdc46447bb194872a86fd89e762e28a1789 (patch)
treea601175ad4a418fedba6c0ff1ce9e51a16ad3e4d /data.c
parent5b93e9069e64b2f25a6e17de9d7a2e0aee209ac5 (diff)
Attend mastoapi relationships.
Now, the follow/unfollow buttons appear on each account's page.
Diffstat (limited to 'data.c')
-rw-r--r--data.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/data.c b/data.c
index 223ad45..f9c581f 100644
--- a/data.c
+++ b/data.c
@@ -1074,7 +1074,7 @@ d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show)
with a link to a cached author, because we need the Follow object
in case we need to unfollow (Undo + original Follow) */
-d_char *_following_fn(snac *snac, char *actor)
+d_char *_following_fn(snac *snac, const char *actor)
{
xs *md5 = xs_md5_hex(actor, strlen(actor));
return xs_fmt("%s/following/%s.json", snac->basedir, md5);
@@ -1116,7 +1116,7 @@ int following_del(snac *snac, char *actor)
}
-int following_check(snac *snac, char *actor)
+int following_check(snac *snac, const char *actor)
/* checks if we are following this actor */
{
xs *fn = _following_fn(snac, actor);
@@ -1185,14 +1185,14 @@ d_char *following_list(snac *snac)
}
-d_char *_muted_fn(snac *snac, char *actor)
+d_char *_muted_fn(snac *snac, const char *actor)
{
xs *md5 = xs_md5_hex(actor, strlen(actor));
return xs_fmt("%s/muted/%s", snac->basedir, md5);
}
-void mute(snac *snac, char *actor)
+void mute(snac *snac, const char *actor)
/* mutes a moron */
{
xs *fn = _muted_fn(snac, actor);
@@ -1207,7 +1207,7 @@ void mute(snac *snac, char *actor)
}
-void unmute(snac *snac, char *actor)
+void unmute(snac *snac, const char *actor)
/* actor is no longer a moron */
{
xs *fn = _muted_fn(snac, actor);
@@ -1218,7 +1218,7 @@ void unmute(snac *snac, char *actor)
}
-int is_muted(snac *snac, char *actor)
+int is_muted(snac *snac, const char *actor)
/* check if someone is muted */
{
xs *fn = _muted_fn(snac, actor);