wip
This commit is contained in:
parent
985a105930
commit
47ce59d555
5 changed files with 244 additions and 20 deletions
|
|
@ -30,8 +30,8 @@ export default async function(resolver: Resolver, actor: IRemoteUser, activity:
|
|||
|
||||
//#region Visibility
|
||||
let visibility = 'public';
|
||||
if (!activity.to.includes('https://www.w3.org/ns/activitystreams#Public')) visibility = 'unlisted';
|
||||
if (activity.cc.length == 0) visibility = 'private';
|
||||
if (!activity.to.includes('https://www.w3.org/ns/activitystreams#Public')) visibility = 'home';
|
||||
if (activity.cc.length == 0) visibility = 'followers';
|
||||
// TODO
|
||||
if (visibility != 'public') throw new Error('unspported visibility');
|
||||
//#endergion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue