Commit graph

2189 commits

Author SHA1 Message Date
Hazelnoot
2fdec0ce29 add option to put Translate button in the note toolbar 2025-05-16 20:00:48 -04:00
dakkar
323ad31605 await reverseConcat
before d7784ea4ff
`moreFetching.value=false` happened after the `nextTick` inside
`reverseConcat` had completed, but after that commit, it happens
immediately (as part of the try/finally)

this _probably_ doesn't matter, but let's avoid changes we didn't
intend
2025-05-15 15:11:18 +01:00
Hazelnoot
8348a36f24 cleanup, simplify, and merge duplicate word mute implementations 2025-05-13 22:58:24 -04:00
Hazelnoot
b52db71e18 factor out shared word mute logic 2025-05-12 23:28:55 -04:00
Hazelnoot
1a3c6f25a2 simplify access to showSoftWordMutedWord 2025-05-12 21:46:03 -04:00
Hazelnoot
5cb0129c49 show muted words in following feed 2025-05-12 21:46:03 -04:00
Hazelnoot
05e5be8218 show muted words in NoteDetailed / NoteSub components 2025-05-12 21:46:03 -04:00
Hazelnoot
cace4153e4 merge: Make muted post placeholders look clickable (resolves #502) (!1019)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1019

Closes #502

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-12 10:37:09 +00:00
Hazelnoot
835e76152e merge: Add pattern checker for word mutes (resolves #1003) (!1020)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1020

Closes #1003

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-12 10:33:25 +00:00
Hazelnoot
c6ef944fc6 rename SkWordMuteTest to SkPatternTest 2025-05-10 22:49:23 -04:00
Hazelnoot
32e2a07d66 extract SkWordMuteTest 2025-05-10 22:39:13 -04:00
Hazelnoot
f402fd3313 user appearNote in NoteSub mute placeholders 2025-05-10 21:53:05 -04:00
Hazelnoot
0e4b7c91f1 remove invisible user link from "muted note" placeholder 2025-05-10 21:52:40 -04:00
Hazelnoot
0a0f3c3387 add "clickable" styling for muted note placeholder 2025-05-10 21:50:18 -04:00
Hazelnoot
42d4fc9d97 refactor following feed to avoid circular dependency 2025-05-10 18:40:06 -04:00
Hazelnoot
2d48387f49 pass token in Authorization header instead of i property 2025-05-09 10:56:21 -04:00
Hazelnoot
2acf7fa46d merge: fix "click to open", "number of replies", "oneko" (!1000)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1000

Approved-by: Marie <github@yuugi.dev>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-05-09 12:37:37 +00:00
Hazelnoot
5101a5662b merge: Autofill reply mentions based on the replies property instead of MFM text (resolves #1045) (!981)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/981

Closes #1045

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-09 09:28:11 +00:00
dakkar
51a07fc6e4 fix "number of replies" 2025-05-09 09:30:45 +01:00
dakkar
9d5e477c9d fix "click to open" 2025-05-09 09:26:02 +01:00
Hazelnoot
d06e1e3080 don't insert mentions for the current user 2025-05-08 16:20:29 -04:00
Hazelnoot
df0d8045d5 fix duplicate mentions and spurious "user is not mentioned" warnings when replying to a DM thread including a user with a capitalized username 2025-05-08 16:20:29 -04:00
Hazelnoot
a4c7f3affd when replying to a note, auto-fill mentions based on the backend data instead of parsing the OP text 2025-05-08 16:20:29 -04:00
Marie
b753b2ea3a
add poll edit warning 2025-05-08 19:47:18 +02:00
dakkar
2de4b093ff merge the two post-form menus 2025-05-08 16:57:37 +01:00
Marie
a3454543f5 Fix frontend lint issue caused by adding reset 2025-05-07 19:20:37 +00:00
Marie
f1b0ff8f5f
isNotUserHome > isUserHome 2025-05-07 10:46:17 +02:00
Marie
7f2ff3ddcc
fix const name 2025-05-07 08:26:07 +02:00
Marie
e77b6cf24d
fix background tomfoolery for mobile users 2025-05-07 08:22:35 +02:00
Marie
a7fa4100be fix background transparency on notes 2025-05-03 22:39:49 +00:00
dakkar
d41372f948 (manually) revert bc422fe36f
the fix for #1037 was wrong (it would collapse a boosted quote if the
quoted note was from the current user), and not
necessary (`appearNote.value.userId` _is_ the author of the boosted
note, no need to look inside `note.renote` at all)

so… I'm not sure why I even raised the issue 😕
2025-05-03 08:47:29 +01:00
dakkar
ae5b5e77cc fix "collapse renotes of my own notes" 2025-05-02 20:05:56 +01:00
Marie
d3a07a8c1c merge: save draft early when doing "delete&edit" - fixes #638 (!975)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/975

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-05-01 23:06:34 +00:00
Marie
f2f3ae0112 merge: collapse renotes of notes created by the logged-in user - fix #1037 (!974)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/974

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-05-01 23:04:45 +00:00
dakkar
bd72de2805 allow clearing a role's color - fixes #734 2025-05-01 14:23:51 +01:00
dakkar
07ff6a890b save draft early when doing "delete&edit" - fixes #638
when the posting form gets shown, the original note is already gone,
and without this change, the note only exists in local variables

now, we save the draft as soon as the form is shown, so clicking on
the "post" (or reply, or quote) button will get you a form with the
draft data
2025-05-01 13:49:12 +01:00
dakkar
bc422fe36f collapse renotes of my notes - fix #1037 2025-05-01 13:15:21 +01:00
dakkar
121f555fca fix renoter avatar in SkNote 2025-05-01 13:12:05 +01:00
dakkar
bf80b3d07f fix reactions viewer styling in SkNote* 2025-05-01 11:48:10 +01:00
dakkar
46d1af5c56 fix note display style in timelines 2025-05-01 11:45:09 +01:00
Hazelnoot
9c301fa5aa Merge branch 'misskey-develop' into merge/2025-03-24
# Conflicts:
#	.github/workflows/api-misskey-js.yml
#	.github/workflows/changelog-check.yml
#	.github/workflows/check-misskey-js-autogen.yml
#	.github/workflows/get-api-diff.yml
#	.github/workflows/lint.yml
#	.github/workflows/locale.yml
#	.github/workflows/on-release-created.yml
#	.github/workflows/storybook.yml
#	.github/workflows/test-backend.yml
#	.github/workflows/test-federation.yml
#	.github/workflows/test-frontend.yml
#	.github/workflows/test-misskey-js.yml
#	.github/workflows/test-production.yml
#	.github/workflows/validate-api-json.yml
#	package.json
#	packages/backend/package.json
#	packages/backend/src/server/api/ApiCallService.ts
#	packages/backend/src/server/api/endpoints/drive/files/create.ts
#	packages/frontend-shared/js/url.ts
#	packages/frontend/package.json
#	packages/frontend/src/components/MkFileCaptionEditWindow.vue
#	packages/frontend/src/components/MkInfo.vue
#	packages/frontend/src/components/MkLink.vue
#	packages/frontend/src/components/MkNote.vue
#	packages/frontend/src/components/MkNotes.vue
#	packages/frontend/src/components/MkPageWindow.vue
#	packages/frontend/src/components/MkReactionsViewer.vue
#	packages/frontend/src/components/MkTimeline.vue
#	packages/frontend/src/components/MkUrlPreview.vue
#	packages/frontend/src/components/MkUserPopup.vue
#	packages/frontend/src/components/global/MkPageHeader.vue
#	packages/frontend/src/components/global/MkUrl.vue
#	packages/frontend/src/components/global/PageWithHeader.vue
#	packages/frontend/src/pages/about-misskey.vue
#	packages/frontend/src/pages/announcements.vue
#	packages/frontend/src/pages/antenna-timeline.vue
#	packages/frontend/src/pages/channel.vue
#	packages/frontend/src/pages/instance-info.vue
#	packages/frontend/src/pages/note.vue
#	packages/frontend/src/pages/page.vue
#	packages/frontend/src/pages/role.vue
#	packages/frontend/src/pages/tag.vue
#	packages/frontend/src/pages/timeline.vue
#	packages/frontend/src/pages/user-list-timeline.vue
#	packages/frontend/src/pages/user/followers.vue
#	packages/frontend/src/pages/user/following.vue
#	packages/frontend/src/pages/user/home.vue
#	packages/frontend/src/pages/user/index.vue
#	packages/frontend/src/ui/deck.vue
#	packages/misskey-js/generator/package.json
#	pnpm-lock.yaml
#	scripts/changelog-checker/package-lock.json
#	scripts/changelog-checker/package.json
2025-04-29 15:54:11 -04:00
Julia
d10fdfe973
Merge commit from fork
* SP-2025-03.1 always wrap icon&thumbnail URLs

if they're not HTTP URLs, the frontend won't be able to display them
anyway (`<img src="mailto:…">` or '<div stile="background-image:
url(nntp:…)">` aren't going to work!), so let's always run them through the
media proxy, which will fail harder (fetching a `javascript:` URL
won't do anything in the backend, might do something in the frontend)
and will always protect the client's address in cases like `gemini:`
where the browser could try to fetch

* SP-2025-03.2 use object binding for more styles

interpolating a random (remote-controlled!) string into a `style`
attribute is a bad idea; using VueJS object binding, we should get
proper quoting and therefore safe parse failures instead of CSS
injections / XSS

* SP-2025-03.3 slightly more robust "self" URL handling

parse URLs instead of treating them as strings; this is still not
perfect, but the `URL` class only handles full URLs, not relative
ones, so there's so way to ask it "give me a URL object that
represents this resource relative to this base URL"

notice that passing very weird URLs to `MkUrl` and `MkUrlPreview` will
break the frontend (in dev mode) because there's an untrapped `new
URL(…)` that may explode; production builds seem to safely ignore the
error, though

---------

Co-authored-by: dakkar <dakkar@thenautilus.net>
2025-04-29 08:15:54 +09:00
dakkar
4981e5ba36 Merge branch 'develop' into merge/2025-03-24 2025-04-28 15:31:28 +01:00
syuilo
e5fcb5b53f enhance(frontend): disable router view transition
Fix #15723
2025-04-28 21:25:47 +09:00
syuilo
cf07e1e4b9 perf(frontend): improve timeline performance 2025-04-28 12:53:58 +09:00
syuilo
4054f1a0c4 🎨 2025-04-28 10:07:23 +09:00
syuilo
c99f4dc4ce enhance(frontend): add drive tip 2025-04-28 09:46:41 +09:00
Julia Johannesen
ac905118cc
Merge branch 'stable' into merge-stable-into-develop 2025-04-27 16:19:44 -04:00
Julia Johannesen
35df3944c1
Update summaly 2025-04-27 13:31:27 -04:00
Julia Johannesen
0bb4e57b0c
Security fixes
Co-Authored-By: dakkar <dakkar@thenautilus.net>
2025-04-27 13:05:09 -04:00