mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Minor tweaks to content_search().
This commit is contained in:
parent
52ba7f030e
commit
34c8968cfb
1 changed files with 5 additions and 8 deletions
11
data.c
11
data.c
|
@ -2514,14 +2514,11 @@ xs_list *content_search(snac *user, const xs_list *timeline,
|
|||
break;
|
||||
}
|
||||
|
||||
int status;
|
||||
/* if from a user, must be in any timeline */
|
||||
if (user && !timeline_here(user, v))
|
||||
continue;
|
||||
|
||||
if (user)
|
||||
status = timeline_get_by_md5(user, v, &post);
|
||||
else
|
||||
status = object_get_by_md5(v, &post);
|
||||
|
||||
if (!valid_status(status))
|
||||
if (!valid_status(object_get_by_md5(v, &post)))
|
||||
continue;
|
||||
|
||||
/* must be a Note */
|
||||
|
|
Loading…
Reference in a new issue