[backend/masto-client] Move replyInaccessible marker into CW field for notes with CW
This commit is contained in:
parent
c21147c86f
commit
9de6d15a0c
1 changed files with 10 additions and 0 deletions
|
@ -112,6 +112,16 @@ public class NoteRenderer(
|
||||||
_ => MfmInlineMedia.MediaType.Other
|
_ => MfmInlineMedia.MediaType.Other
|
||||||
}, p.RemoteUrl ?? p.Url, p.Description)).ToList();
|
}, p.RemoteUrl ?? p.Url, p.Description)).ToList();
|
||||||
|
|
||||||
|
var cw = note.Cw;
|
||||||
|
if (replyInaccessible && !string.IsNullOrEmpty(cw))
|
||||||
|
{
|
||||||
|
// prefix with lock emoji
|
||||||
|
cw = "RE: \ud83d\udd12, " + cw;
|
||||||
|
|
||||||
|
// prevent duplicating inaccessible marker in the body
|
||||||
|
replyInaccessible = false;
|
||||||
|
}
|
||||||
|
|
||||||
string? content = null;
|
string? content = null;
|
||||||
if (data?.Source != true)
|
if (data?.Source != true)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue