[backend/akko-client] Handle "local" visibility (ISH-559)
This commit is contained in:
parent
6c72b27f86
commit
40b35a7bd2
1 changed files with 7 additions and 1 deletions
|
@ -385,6 +385,12 @@ public class StatusController(
|
|||
}
|
||||
: null;
|
||||
|
||||
if (request.Visibility == "local")
|
||||
{
|
||||
request.Visibility = "public";
|
||||
request.LocalOnly = true;
|
||||
}
|
||||
|
||||
var visibility = StatusEntity.DecodeVisibility(request.Visibility);
|
||||
var reply = request.ReplyId != null
|
||||
? await db.Notes.Where(p => p.Id == request.ReplyId)
|
||||
|
@ -692,4 +698,4 @@ public class StatusController(
|
|||
await db.NoteThreadMutings.Where(p => p.User == user && p.ThreadId == target).ExecuteDeleteAsync();
|
||||
return await GetNote(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue