Commit graph

20716 commits

Author SHA1 Message Date
Norm d79fe1dee0 refactor: page.text.vue to use composition api 2022-07-23 17:42:00 -04:00
Johann150 3e05740bee
refactor queue chart to composition API 2022-07-23 23:03:20 +02:00
Johann150 63591da33e
refactor: colours in queue chart 2022-07-23 23:00:59 +02:00
Johann150 3fe351df6d
fix: catch errors from packing with detail
Packing with detail can cause an error if the reply or renote
are not visible to the user, even though the original note is
visible to the user.
2022-07-23 22:28:41 +02:00
Johann150 b630cd7eac
refactor: add NoteReactions.packMany 2022-07-23 22:28:40 +02:00
Johann150 6775028b1e
adjust tests 2022-07-23 22:28:40 +02:00
Johann150 128d0f0d4e
remove isHidden and its uses
The `isHidden` attribute is not being set any more and is thus removed.
Handling in the client is no longer necessary.
2022-07-23 22:28:39 +02:00
Johann150 cfa371b52b
refactor: remove note re-packing in streaming API
Instead of packing the note for public user before passing it to
streams, the note is now either packed for the user the respective
stream belongs to (`mainStream`) or not packed at all and then packed
later (`notesStream`).

Because this is a new common task between different channels, a shared
implementation of packing a note from notesStream is created. This
implementation will simply skip a note if it is not visible to the user
that the channel belongs to.
2022-07-23 22:27:29 +02:00
Johann150 c6192ac95a
fix: handle exception in note favorites 2022-07-23 22:27:29 +02:00
Johann150 2486eff747
packing notes not visible to user raises an error
Instead of just hiding specific fields, the entire note is hidden. This means
that metadata of the note such as who is the author, when was it sent are
completely hidden.
2022-07-23 22:27:29 +02:00
Johann150 3c6d9cc8ab
use getNote instead of Notes.find
If a note is not visible to the requesting user, an error will be raised.
2022-07-23 22:27:28 +02:00
Johann150 97edaca351
getNote checks visibility
Raise an error When a note is not visible to the requesting user.
2022-07-23 22:27:14 +02:00
Norm 2f432dce65 refactor: link.vue to use composition api 2022-07-23 20:26:45 +00:00
Norm bbb16208ab remove async from ok() 2022-07-23 20:23:45 +00:00
Norm 95148cf647 refactor: use emit for MkModal @closed 2022-07-23 20:23:45 +00:00
Norm b64f266483 refactor: media-caption component as composition api 2022-07-23 20:23:45 +00:00
Chloe Kudryavtsev 0ae09f2e80 Revert "additional background for acrylic popups if unsupported"
This reverts commit 10d401afc2.
See: FoundKeyGang/FoundKey#22
2022-07-22 10:15:42 -04:00
Norm bfd9c7404b
form-dialog: set type of result for 'done' event to Record<string, any> 2022-07-21 18:54:43 -04:00
Johann150 150f373ebf
replace one more object type 2022-07-21 21:17:39 +02:00
Johann150 fef2d9173e
Merge: Refactor form-dialog.vue to Composition API
FoundKeyGang/FoundKey#17
2022-07-21 21:13:03 +02:00
Norm 2d245d62cf form-dialog: use Record<string, any> for form prop 2022-07-20 19:23:17 -04:00
Johann150 9c411d181a
fix: volume sliders
Fixed a typo that made a required property be undefined.
Also reduced code duplication.

Fixes FoundKeyGang/FoundKey#18
2022-07-21 01:18:08 +02:00
syuilo a12acf53ef
refactor(client): formatting and replace global $ts 2022-07-21 00:45:30 +02:00
Norm 929203b2f3 Remove leftover comments from form-dialog 2022-07-20 18:17:24 -04:00
Norm d29a0dad8f Refactor form-dialog.vue to use Composition API 2022-07-20 18:15:55 -04:00
Johann150 7e186dae69
refactor: use autofocus parameter
Using the `ref` seems to be broken but using the autofocus parameter
seems to fix it.
2022-07-20 23:49:55 +02:00
Johann150 a988f6bda0
fix: not logged in clients send correct header 2022-07-20 18:40:36 +02:00
Johann150 5255817e99
Merge branch ci 2022-07-20 15:20:12 +02:00
Johann150 f3e196528f
Merge bearer-authentication
foundKeyGang/foundKey#15
2022-07-20 15:10:47 +02:00
syuilo 1477cb54b5
enhance(client): suspense
Fix https://github.com/misskey-dev/misskey/issues/8817
2022-07-19 18:56:50 +02:00
syuilo 8ed288cb22
fix(client): switch to receive email notifications
Fix https://github.com/misskey-dev/misskey/issues/8474
2022-07-19 18:40:36 +02:00
Johann150 2d4089ce09
adjust localisation string for reports 2022-07-19 18:03:38 +02:00
Johann150 748a830937
client: display URLs in report 2022-07-19 17:18:19 +02:00
Johann150 6060e7d220
enhance: better rendering of reports
Passing the report object reduces the number of parameters to be passed.
2022-07-19 17:18:19 +02:00
Johann150 fc51ac17b1
fix: remove unnecessary null check
Because `findOneByOrFail` is used above, the null check is unnecessary.
2022-07-19 17:18:19 +02:00
Johann150 d92d389cda
extract note URLs from Activity 2022-07-19 17:18:18 +02:00
Johann150 9ca504784a
keep URL of reported object separate
Instead of putting the URL in the report text, it is stored separately
so that users do not accidentally change or remove it.

This way it can easily be used when forwarding reports to different
instances to tell them what exactly was reported.
2022-07-19 17:18:18 +02:00
Johann150 1ec756519e
fix: move forwarded attribute to output 2022-07-19 17:18:15 +02:00
Johann150 ecbb766df6
refactor: signup component as composition api 2022-07-19 10:35:11 +02:00
Johann150 27be5e0892
fix collapsing long notes 2022-07-19 10:02:40 +02:00
Johann150 e5f41ece7e
fix appending to pagination component
FoundKeyGang/FoundKey#16
2022-07-19 09:21:38 +02:00
Johann150 075cf0fa6b
refactor: use overflow-y to determine scroll container
By using `overflow-y` instead of `overflow` using `endsWith` can be
avoided and represents the data we are actually interested in here
more accurately.
2022-07-19 09:09:04 +02:00
Norm 7d4cbd6ecf Merge branch 'main' into fix-chat-continuation 2022-07-19 07:08:51 +00:00
Kainoa Kanter b803a7256b
🎨 2022-07-19 02:51:52 -04:00
ThatOneCalculator 36503f63d8
Fix broken chats
Co-authored-by: @ltlapy
2022-07-19 02:51:46 -04:00
Johann150 454ed9b5c4
remove unnecessary parameter 2022-07-19 08:44:39 +02:00
Johann150 fddf3573a1
client: use bearer token authorization 2022-07-19 00:49:40 +02:00
Johann150 ff75382af3
handle authentication errors in stream API 2022-07-18 23:32:03 +02:00
Johann150 660f6dba30
update openapi spec generator 2022-07-18 23:11:48 +02:00
Johann150 edac21e8f7
improve authentication errors 2022-07-18 23:11:48 +02:00