mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 09:35:04 +00:00
Added an additional check for blocked instances.
This commit is contained in:
parent
abf4279000
commit
5a8c4cac80
1 changed files with 6 additions and 0 deletions
|
@ -311,6 +311,12 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level)
|
|||
if (level < MAX_CONVERSATION_LEVELS && !xs_is_null(*id)) {
|
||||
xs *msg = NULL;
|
||||
|
||||
/* from a blocked instance? discard and break */
|
||||
if (is_instance_blocked(*id)) {
|
||||
snac_debug(snac, 1, xs_fmt("timeline_request blocked instance %s", *id));
|
||||
return status;
|
||||
}
|
||||
|
||||
/* is the object already there? */
|
||||
if (!valid_status(object_get(*id, &msg))) {
|
||||
/* no; download it */
|
||||
|
|
Loading…
Reference in a new issue