Don't forward private and direct messages to followers

master
teknomunk 10 months ago
parent 6b5a5921e1
commit 0c3e52745c

@ -344,8 +344,13 @@ struct ap_object* activity_create_Note( struct status* s )
array_append( &act->tags, sizeof(tag), &tag );
}
str = aformat( "https://%s/owner/followers", g_server->domain );
array_append( &act->cc, sizeof(str), &str );
switch( s->visibility ) {
case status_visibility_public:
case status_visibility_unlisted:
str = aformat( "https://%s/owner/followers", g_server->domain );
array_append( &act->cc, sizeof(str), &str );
break;
}
for( int i = 0; i < s->mentions.count; ++i ) {
struct account* mentioned = account_from_id( s->mentions.items[i] );

Loading…
Cancel
Save