|
|
|
@ -284,6 +284,7 @@ bool status_sync_from_activity_pub( struct status* s, struct ap_object* act )
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
status_save(s);
|
|
|
|
|
status_add_to_timeline( s, a->id );
|
|
|
|
|
result = true;
|
|
|
|
|
cleanup:
|
|
|
|
|
account_free(a);
|
|
|
|
@ -438,14 +439,14 @@ struct status* status_new_system_stub( struct status* stub )
|
|
|
|
|
s = malloc(sizeof(*s));
|
|
|
|
|
memset(s,0,sizeof(*s));
|
|
|
|
|
|
|
|
|
|
s->id = -stub->id - 50;
|
|
|
|
|
s->id = stub->id; //-stub->id - 50;
|
|
|
|
|
s->account_id = -1;
|
|
|
|
|
s->published = time(NULL);
|
|
|
|
|
asprintf( &s->content, "Unable to load status #%d. View on original server at <a href='%s'>%s</a>",
|
|
|
|
|
stub->id,
|
|
|
|
|
stub->url, stub->url
|
|
|
|
|
);
|
|
|
|
|
s->sensitive = true;
|
|
|
|
|
s->sensitive = false;
|
|
|
|
|
|
|
|
|
|
return s;
|
|
|
|
|
}
|
|
|
|
|