summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2022-12-02 20:56:51 +0100
committerGravatar default2022-12-02 20:56:51 +0100
commita133427e8dd8533828f7638915d3a0b06a3ed000 (patch)
treee94805cd659f510af52be37093bfe8ad7341cce2 /activitypub.c
parentRenamed timeline_here() to object_here(). (diff)
downloadsnac2-a133427e8dd8533828f7638915d3a0b06a3ed000.tar.gz
snac2-a133427e8dd8533828f7638915d3a0b06a3ed000.tar.xz
snac2-a133427e8dd8533828f7638915d3a0b06a3ed000.zip
More old code cleaning.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c
index 09fa55e..f19774c 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -399,7 +399,7 @@ d_char *msg_admiration(snac *snac, char *object, char *type)
399 /* call the object */ 399 /* call the object */
400 timeline_request(snac, object, snac->actor); 400 timeline_request(snac, object, snac->actor);
401 401
402 if ((a_msg = timeline_find(snac, object)) != NULL) { 402 if (valid_status(object_get(object, &a_msg, NULL))) {
403 xs *rcpts = xs_list_new(); 403 xs *rcpts = xs_list_new();
404 404
405 msg = msg_base(snac, type, "@dummy", snac->actor, "@now", object); 405 msg = msg_base(snac, type, "@dummy", snac->actor, "@now", object);
@@ -592,7 +592,7 @@ d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to, char
592 /* demand this thing */ 592 /* demand this thing */
593 timeline_request(snac, in_reply_to, NULL); 593 timeline_request(snac, in_reply_to, NULL);
594 594
595 if ((p_msg = timeline_find(snac, in_reply_to)) != NULL) { 595 if (valid_status(object_get(in_reply_to, &p_msg, NULL))) {
596 /* add this author as recipient */ 596 /* add this author as recipient */
597 char *a, *v; 597 char *a, *v;
598 598
@@ -892,7 +892,7 @@ int process_message(snac *snac, char *msg, char *req)
892 892
893 timeline_request(snac, object, actor); 893 timeline_request(snac, object, actor);
894 894
895 if ((a_msg = timeline_find(snac, object)) != NULL) { 895 if (valid_status(object_get(object, &a_msg, NULL))) {
896 char *who = xs_dict_get(a_msg, "attributedTo"); 896 char *who = xs_dict_get(a_msg, "attributedTo");
897 897
898 if (who && !is_muted(snac, who)) { 898 if (who && !is_muted(snac, who)) {