|
|
|
@ -59,6 +59,7 @@ bool route_announce( struct ap_object* act )
|
|
|
|
|
s->repost_id = original_post->id;
|
|
|
|
|
s->account_id = actor_account->id;
|
|
|
|
|
s->sensitive = act->sensitive;
|
|
|
|
|
status_save_new(s);
|
|
|
|
|
|
|
|
|
|
if( original_post->account_id == owner_account_id ) {
|
|
|
|
|
struct notification* note = notification_new();
|
|
|
|
@ -66,10 +67,10 @@ bool route_announce( struct ap_object* act )
|
|
|
|
|
note->status_id = s->id;
|
|
|
|
|
note->account_id = actor_account->id;
|
|
|
|
|
note->created_at = time(NULL);
|
|
|
|
|
notification_save(note);
|
|
|
|
|
notification_free(note);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
status_save_new(s);
|
|
|
|
|
|
|
|
|
|
status_add_to_timeline( original_post, original_post->account_id );
|
|
|
|
|
|
|
|
|
|
status_add_to_timeline( s, home_timeline_id );
|
|
|
|
|