chore: formatting
This commit is contained in:
parent
91704cb07c
commit
f2ffe07425
|
@ -606,8 +606,7 @@ export default async (
|
||||||
});
|
});
|
||||||
|
|
||||||
async function renderNoteOrRenoteActivity(data: Option, note: Note) {
|
async function renderNoteOrRenoteActivity(data: Option, note: Note) {
|
||||||
if (data.localOnly ||
|
if (data.localOnly || note.visibility !== "hidden") return null;
|
||||||
note.visibility !== "hidden") return null;
|
|
||||||
|
|
||||||
const content =
|
const content =
|
||||||
data.renote &&
|
data.renote &&
|
||||||
|
|
|
@ -144,10 +144,7 @@ export default async (
|
||||||
});
|
});
|
||||||
|
|
||||||
//#region deliver
|
//#region deliver
|
||||||
if (
|
if (Users.isLocalUser(user) && !note.localOnly) {
|
||||||
Users.isLocalUser(user) &&
|
|
||||||
!note.localOnly
|
|
||||||
) {
|
|
||||||
const content = renderActivity(await renderLike(record, note));
|
const content = renderActivity(await renderLike(record, note));
|
||||||
const dm = new DeliverManager(user, content);
|
const dm = new DeliverManager(user, content);
|
||||||
if (note.userHost !== null) {
|
if (note.userHost !== null) {
|
||||||
|
|
|
@ -75,7 +75,10 @@ const renote = async (viaKeyboard = false, ev?: MouseEvent) => {
|
||||||
|
|
||||||
let buttonActions = [];
|
let buttonActions = [];
|
||||||
|
|
||||||
if (props.note.visibility === "public" || props.note.visibility === "hidden") {
|
if (
|
||||||
|
props.note.visibility === "public" ||
|
||||||
|
props.note.visibility === "hidden"
|
||||||
|
) {
|
||||||
buttonActions.push({
|
buttonActions.push({
|
||||||
text: i18n.ts.renote,
|
text: i18n.ts.renote,
|
||||||
textStyle: "font-weight: bold",
|
textStyle: "font-weight: bold",
|
||||||
|
|
Loading…
Reference in New Issue