|
|
|
@ -291,8 +291,15 @@ struct ap_object* activity_create_Note( struct status* s )
|
|
|
|
|
act->attributed_to = strdup( a->account_url );
|
|
|
|
|
account_free(a);
|
|
|
|
|
}
|
|
|
|
|
char* str = strdup("https://www.w3.org/ns/activitystreams#Public");
|
|
|
|
|
array_append( &act->to, sizeof(str), &str );
|
|
|
|
|
|
|
|
|
|
char* str = NULL;
|
|
|
|
|
switch( s->visibility ) {
|
|
|
|
|
case status_visibility_public:
|
|
|
|
|
{
|
|
|
|
|
str = strdup("https://www.w3.org/ns/activitystreams#Public");
|
|
|
|
|
array_append( &act->to, sizeof(str), &str );
|
|
|
|
|
}; break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for( int i = 0; i < s->media2.count; ++i ) {
|
|
|
|
|
struct media* m = s->media2.items[i];
|
|
|
|
|