diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c index 8a5dd3c..764f69d 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1128,10 +1128,7 @@ int activitypub_get_handler(d_char *req, char *q_path, | |||
| 1128 | if (xs_startswith(p_path, "p/")) { | 1128 | if (xs_startswith(p_path, "p/")) { |
| 1129 | xs *id = xs_fmt("%s/%s", snac.actor, p_path); | 1129 | xs *id = xs_fmt("%s/%s", snac.actor, p_path); |
| 1130 | 1130 | ||
| 1131 | if ((msg = timeline_find(&snac, id)) != NULL) | 1131 | status = object_get(id, &msg, NULL); |
| 1132 | msg = xs_dict_del(msg, "_snac"); | ||
| 1133 | else | ||
| 1134 | status = 404; | ||
| 1135 | } | 1132 | } |
| 1136 | else | 1133 | else |
| 1137 | status = 404; | 1134 | status = 404; |