mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-12 21:10:22 +03:00
Don't store objects other than 'Note' in timeline_request().
This commit is contained in:
parent
5c81dd88bc
commit
34a2b47e85
@ -91,6 +91,9 @@ int timeline_request(snac *snac, char *id, char *referrer)
|
||||
status = activitypub_request(snac, id, &object);
|
||||
|
||||
if (valid_status(status)) {
|
||||
char *type = xs_dict_get(object, "type");
|
||||
|
||||
if (!xs_is_null(type) && strcmp(type, "Note") == 0) {
|
||||
char *actor = xs_dict_get(object, "attributedTo");
|
||||
|
||||
/* request (and drop) the actor for this entry */
|
||||
@ -108,6 +111,7 @@ int timeline_request(snac *snac, char *id, char *referrer)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user