summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c
index cfff6ca..f6660db 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -780,10 +780,10 @@ xs_dict *msg_note(snac *snac, xs_str *content, xs_val *rcpts, xs_str *in_reply_t
780} 780}
781 781
782 782
783void notify(snac *snac, char *type, char *utype, char *actor, char *msg) 783void notify(snac *snac, xs_str *type, xs_str *utype, xs_str *actor, xs_dict *msg)
784/* notifies the user of relevant events */ 784/* notifies the user of relevant events */
785{ 785{
786 char *object = NULL; 786 xs_val *object = NULL;
787 787
788 if (strcmp(type, "Create") == 0) { 788 if (strcmp(type, "Create") == 0) {
789 /* only notify of notes specifically for us */ 789 /* only notify of notes specifically for us */
@@ -812,7 +812,10 @@ void notify(snac *snac, char *type, char *utype, char *actor, char *msg)
812 } 812 }
813 813
814 /* prepare message body */ 814 /* prepare message body */
815 xs *body = xs_str_new(NULL); 815 xs *body = xs_fmt("User : @%s@%s\n",
816 xs_dict_get(snac->config, "uid"),
817 xs_dict_get(srv_config, "host")
818 );
816 819
817 if (strcmp(utype, "(null)") != 0) { 820 if (strcmp(utype, "(null)") != 0) {
818 xs *s1 = xs_fmt("Type : %s + %s\n", type, utype); 821 xs *s1 = xs_fmt("Type : %s + %s\n", type, utype);