summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-02 20:56:51 +0100
committerdefault <nobody@localhost>2022-12-02 20:56:51 +0100
commita133427e8dd8533828f7638915d3a0b06a3ed000 (patch)
treee94805cd659f510af52be37093bfe8ad7341cce2 /activitypub.c
parent3e2891b100c3359bf3ff85e01447270f0aab3be1 (diff)
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)
/* call the object */
timeline_request(snac, object, snac->actor);
- if ((a_msg = timeline_find(snac, object)) != NULL) {
+ if (valid_status(object_get(object, &a_msg, NULL))) {
xs *rcpts = xs_list_new();
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
/* demand this thing */
timeline_request(snac, in_reply_to, NULL);
- if ((p_msg = timeline_find(snac, in_reply_to)) != NULL) {
+ if (valid_status(object_get(in_reply_to, &p_msg, NULL))) {
/* add this author as recipient */
char *a, *v;
@@ -892,7 +892,7 @@ int process_message(snac *snac, char *msg, char *req)
timeline_request(snac, object, actor);
- if ((a_msg = timeline_find(snac, object)) != NULL) {
+ if (valid_status(object_get(object, &a_msg, NULL))) {
char *who = xs_dict_get(a_msg, "attributedTo");
if (who && !is_muted(snac, who)) {