Commit graph

1826 commits

Author SHA1 Message Date
Kainoa Kanter
19762bd955 Merge branch 's3-logging' into 'develop'
Log the concatenated S3 url if constructing the S3 client fails.

See merge request firefish/firefish!10531
2023-07-28 18:30:53 +00:00
Namekuji
c7040b77b5
export visibility check 2023-07-27 07:15:58 -04:00
yumeko
72d194f7a1
Fix indents 2023-07-27 12:54:42 +03:00
yumeko
a4838c7ee4 Merge branch firefish:develop into fix/10404-object-storage-prefix 2023-07-27 09:53:16 +00:00
Namekuji
f4dffc6d72
fix: fallback to postgres 2023-07-27 05:13:07 -04:00
Namekuji
f68f20efe6
revert caching 2023-07-27 04:45:07 -04:00
Namekuji
4b6d3e3fd6
add cache to follow and unfollow 2023-07-27 04:43:50 -04:00
ThatOneCalculator
dacce643fe
fix: 🔒 Show 404 error on files not found 2023-07-27 01:28:02 -07:00
Namekuji
b37717d431
denormalize more columns 2023-07-26 22:12:57 -04:00
Namekuji
a7fdf68bd2
read from scylla and dragonfly in getNote if enabled 2023-07-26 21:46:43 -04:00
Namekuji
e4fef88e4e
add followings cache 2023-07-26 21:42:03 -04:00
Namekuji
f0ce2808d9
add scylla note type 2023-07-26 19:14:28 -04:00
ThatOneCalculator
97d395ce2a
chore: 🎨 format 2023-07-25 23:46:43 -07:00
ThatOneCalculator
03ddc970d5
fix: 🐛 don't show server stats in widget if reporting is disabled
Closes #10527
2023-07-25 21:49:09 -07:00
Laura Hausmann
466917feb6
Improve /api/v1/instance accuracy 2023-07-25 21:25:37 -07:00
Laura Hausmann
56bf7a0ffb
Fix cpu/memory stats widget 2023-07-25 21:23:21 -07:00
Namekuji
b211788d3c
adjusting schema 2023-07-25 07:28:08 -04:00
Viv Lim
74179aafdf Log the assembled S3 url if constructing a S3 client fails.
I was configuring an instance and didn't notice that I had pasted a space into the `endpoint` field. It was not obvious from the logs why the URL was invalid.
2023-07-24 20:34:37 -07:00
Kainoa Kanter
8ff1c9b722 Merge branch 'mastodon-api-emoji-reactions' into 'develop'
Support proposed Glitch emoji reactions API

Closes #10537

See merge request firefish/firefish!10532
2023-07-25 01:24:35 +00:00
ThatOneCalculator
548de39e3c
fix? 2023-07-24 17:28:47 -07:00
Vyr Cossont
5fedfd2599 Support proposed Glitch emoji reactions API
Fixes #10537
2023-07-24 17:11:10 -07:00
ThatOneCalculator
7ef99069e6
fix: 🐛 revert last part of c0eac56355 to properly paginate antennas/notes query 2023-07-24 16:27:53 -07:00
Kainoa Kanter
a7fbc02ca5 Merge branch 'enhance/log-backend-error-objects' into 'develop'
Log backend error objects

See merge request firefish/firefish!10528
2023-07-24 23:04:42 +00:00
ThatOneCalculator
bec0aae418
chore: 🎨 format 2023-07-24 16:03:58 -07:00
Namekuji
168001271f
chore: remove unused lines 2023-07-24 13:46:48 -04:00
Namekuji
7e703e1bb0
Merge branch 'develop' into feat/scylladb 2023-07-24 13:16:33 -04:00
Namekuji
5832940d7a
fix: rename copyright to firefish 2023-07-24 13:10:35 -04:00
Namekuji
ef9c553535
Merge branch 'develop' into feat/scylladb 2023-07-24 13:06:35 -04:00
Namekuji
a8b54b0c92
delete note and reaction in scylla 2023-07-24 12:27:53 -04:00
Namekuji
ee6795ac9d
insert reactions to scylla 2023-07-24 08:09:22 -04:00
yumeko
ae22abd61b Merge branch firefish:develop into fix/10404-object-storage-prefix 2023-07-24 10:08:38 +00:00
Namekuji
03da4eb57a
insert post to scylladb 2023-07-24 05:35:44 -04:00
Namekuji
271d75c35c
fix: case sensitive 2023-07-24 03:53:13 -04:00
Namekuji
e715b918d5
add queries 2023-07-23 22:29:38 -04:00
ThatOneCalculator
c0eac56355
fix: 🐛 antenna notes pagination repeat 2023-07-23 14:13:46 -07:00
yumeko
19311e683c
Dump to console the error data associated with logger error calls. 2023-07-22 22:12:52 +03:00
yumeko
4e23b77aff Replace URL generation code in the drive file uploader with something more robust.
Closes #10404, hopefully.
2023-07-22 14:03:40 +03:00
Namekuji
40938f5f97
fix: add cassandra-driver to dependencies 2023-07-22 02:58:26 -04:00
Namekuji
587bffae33
Merge branch 'develop' into feat/scylladb 2023-07-22 02:52:34 -04:00
Vyr Cossont
0394f22c4f
fix: convert quoted status and reaction accounts in Mastodon API layer 2023-07-21 16:23:15 -07:00
Kainoa Kanter
a2d81850e4 Merge branch 'fix/10332-internal-error-on-nonexisting-emoji' into 'develop'
Throw a proper ApiError with statusCode 404 when GETting a non-existing emoji.

Closes #10332

See merge request firefish/firefish!10523
2023-07-21 23:14:49 +00:00
yumeko
c9526b9a31 Throw a proper ApiError with statusCode 404 when GETting a non-existing emoji.
Closes #10332
2023-07-21 23:15:53 +03:00
yumeko
47f5cb2e76 Don't leak error details (including the stack trace) upon API call failure to client in production 2023-07-21 22:32:39 +03:00
ThatOneCalculator
e35b38302d
refactor: ♻️ new git repo
for real this time
2023-07-21 09:44:29 -07:00
ThatOneCalculator
8de79198a1
fix: 🩹 version manifest assets based on instance version 2023-07-20 23:31:51 -07:00
ThatOneCalculator
03077a157e
refactor: ♻️ create drive file endpoint
Adjusts ratelimit to 250 files every 10 minutes, fixes error text, fixes reused variable name.
2023-07-20 16:13:10 -07:00
ThatOneCalculator
7364ebdca8
fix: 🍱 asset versioning, screenshots 2023-07-19 20:32:04 -07:00
ThatOneCalculator
76ad0a19b3
fix: 🍱 fix old favicon 2023-07-19 19:13:54 -07:00
ThatOneCalculator
b4ed4dec47
v1.0.1 2023-07-19 15:20:22 -07:00
ThatOneCalculator
0a7b4bdb8a
logo 2023-07-19 11:53:03 -07:00
ThatOneCalculator
cac284a79d
fix: 🐛 merge somehow stripped style.css of splash style 2023-07-19 10:24:42 -07:00
ThatOneCalculator
1eea65386e
docs: 📝 codeberg -> gitlab 2023-07-19 10:22:36 -07:00
ThatOneCalculator
e67633298e
docs: 🚚 new website 2023-07-19 10:06:57 -07:00
ThatOneCalculator
5e3bc675ef
add 2023-07-19 09:58:14 -07:00
ThatOneCalculator
ebf7fb1a04
fix: 🐛 gitignore causing wrong file to be pushed 2023-07-19 09:56:16 -07:00
DVD
6e296320e0
fix: skip attachment import if undefined 2023-07-19 09:45:00 -07:00
ThatOneCalculator
aa24a3c172
links 2023-07-19 08:58:59 -07:00
ThatOneCalculator
8422807031
Merge branch 'rebrand' into develop 2023-07-19 08:55:26 -07:00
Namekuji
e83578a048
add scylladb config 2023-07-19 10:47:16 -04:00
Namekuji
a047e642f1
Revert "perf: prepare scylladb config and use cache for packing user"
This reverts commit 9c65f0078b.
2023-07-19 10:09:32 -04:00
ThatOneCalculator
73d023930b
error 2023-07-18 23:42:42 -07:00
ThatOneCalculator
7dce4cccae
repo 2023-07-18 21:21:48 -07:00
PrivateGER
457bd6c2e5 Fix broken lists 2023-07-18 16:00:48 +02:00
ThatOneCalculator
b54dfff32f
chore: 🎨 format 2023-07-17 17:38:27 -07:00
PrivateGER
933a4d2aa2 Use MS sorting rather than manual JS 2023-07-18 02:12:33 +02:00
Kainoa Kanter
2c1df97c15 Merge pull request '[PR]: Import mastodon note package' (#10499) from cgsama/calckey:import-masto-package into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10499
2023-07-17 16:54:45 +00:00
Kainoa Kanter
19934043c5 Merge pull request '[PR]: Store antennas in cache instead of postgres' (#10442) from refactor/antennas-in-cache into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10442
2023-07-17 16:51:33 +00:00
コルセット姫@がんばらない
cb3b7ef5be Merge branch 'develop' into import-masto-package 2023-07-17 09:47:04 +00:00
Namekuji
abad503a24
Merge branch 'refactor/antennas-in-cache' into feat/scylladb 2023-07-17 01:52:56 -04:00
Namekuji
0775ad96f9
fix: use hostname as prefix instead of host 2023-07-17 01:48:53 -04:00
Kainoa Kanter
15ffb8cf40 feat: verify links with rel=me (#10506)
Adds Mastodon-style `rel=me` link verification, and creates a background job to verify said links

Closes #9341

![image](/attachments/861e01eb-660f-4c62-8d83-d824cb79da48)

Co-authored-by: ThatOneCalculator <kainoa@t1c.dev>
Co-authored-by: Namekuji <nmkj@waah.day>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10506
2023-07-17 05:31:34 +00:00
Syuilo
5d4af6b69e
refactor: improve performance of contextmenu 2023-07-16 22:12:42 -07:00
naskya
04c43ed3ef Merge branch 'develop' into refactor/antennas-in-cache 2023-07-17 04:43:03 +00:00
Namekuji
3ef71543c9
perf: remove joins of avatar and banner 2023-07-16 23:16:50 -04:00
Namekuji
18ba9183e4
fix: typo 2023-07-16 22:32:52 -04:00
Namekuji
aca0c47012
clear cache at migration 2023-07-16 22:31:24 -04:00
Namekuji
f1f84f9a9a
refactor: use copy_limit if greater than 0 2023-07-16 22:31:24 -04:00
Namekuji
2e9617ef55
fix: add db to redis uri 2023-07-16 22:31:24 -04:00
Namekuji
bc18115108
make unused dependencies optional 2023-07-16 22:31:24 -04:00
Namekuji
0c1a23864f
remove unnecessary migration file 2023-07-16 22:31:23 -04:00
Namekuji
1e41436e89
fix config parser 2023-07-16 22:31:23 -04:00
Namekuji
faa12fa897
add environment variable of read size 2023-07-16 22:31:23 -04:00
Namekuji
04ac723a5f
add environment variable to skip copying antenna 2023-07-16 22:31:23 -04:00
Namekuji
94014e029d
fix: renew entity models 2023-07-16 22:31:23 -04:00
Namekuji
ef00b4034b
copy existing posts in antenna to redis at migration 2023-07-16 22:31:23 -04:00
ThatOneCalculator
6885f9ff95
fix: 🐛 server stats setting, meta fetching 2023-07-16 22:31:21 -04:00
ThatOneCalculator
a4dd142cf9
typo 2023-07-16 22:30:35 -04:00
ThatOneCalculator
3029990b5d
fix 2023-07-16 22:30:35 -04:00
Syuilo
67b38d4a61
refactor: antenna notes in cache
Co-authored-by: Kainoa Kanter <kainoa@t1c.dev>
2023-07-16 22:30:35 -04:00
Namekuji
c47e125413
perf: add new user to cache 2023-07-16 22:30:35 -04:00
Namekuji
9c65f0078b
perf: prepare scylladb config and use cache for packing user 2023-07-16 22:30:34 -04:00
Namekuji
6025b0ef30
revert when query failed 2023-07-16 22:30:34 -04:00
Namekuji
9ec9746233
feat: scylladb schema migrator 2023-07-16 22:30:30 -04:00
Mizunashi Mana
b7c72b902d fix: Branch by bind address 2023-07-17 09:52:35 +09:00
CGsama
f5adccecb8 Merge commit '97a0127dbf0b96203902fb075b1d51659a921bfc'
Conflicts:
	pnpm-lock.yaml
2023-07-16 20:39:26 -04:00
Kainoa Kanter
fa02334ddb Merge branch 'develop' into move-json5-to-prod-dependencies 2023-07-16 22:34:49 +00:00
ThatOneCalculator
bdc35a343e
refactor: 🚨 linting fix 2023-07-16 15:32:32 -07:00
ThatOneCalculator
a88133c4bc
Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-07-16 13:57:46 -07:00
ThatOneCalculator
04c0993f23
Merge branch 'fix/ssrf' into develop 2023-07-16 13:57:27 -07:00
Mizunashi Mana
b9db50de08 fix: Add error message on initialization failed 2023-07-16 20:59:41 +09:00
Mizunashi Mana
e5360536f3 feat: Add bind address option 2023-07-16 20:13:24 +09:00
CGsama
4bb6d7105a support new zip file by mastodon 2023-07-16 06:24:37 -04:00
Mizunashi Mana
1f441507f7 feat: Move json5 to prod dependencies 2023-07-16 19:00:51 +09:00
CGsama
35f09d0067 change wording 2023-07-16 03:24:37 -04:00
CGsama
0c9ab9fdfa fix format 2023-07-16 01:47:06 -04:00
CGsama
809d418018 use gunzip-maybe tar-stream to replace exec 2023-07-16 01:41:57 -04:00
CGsama
324d1a932d handle import mastodon package 2023-07-15 23:02:00 -04:00
コルセット姫@がんばらない
cae6ba0edb feat: Add media to Mastodon and Calckey post imports (#10496)
### What does this PR do?

Adding files fields in the export notes option, and corresponding import notes

Current the mastodon import does not import any attachments, this pr will use the "upload from url" feature to include medias if its a valid URL.

There are many way to convert the outbox.json file, can be simple as upload media_attachments to any web hosting and do string replace on the json file.

I also create a tool that upload the tar.gz file with auto convert and host the media as simplify the process at https://tempfile.moegirl.live

Detail example can be found at https://fedi.moegirl.live/notes/9h76gtqnp2gwl5dz

https://r2temp.moegirl.live/2023/7/15/15356683-050f-423a-b331-c9a05561f52a/shana-settings-_-meng-zhai-le-yuan-xyou-yu-ou-xiang-de-luo-ke-ke-wu-yan-moe-otaku-elysian-x-gloomily-idol-s-rococo-luncheon----mozilla-firefox-private-browsing-2023-07-15-18-36-37.mp4

Co-authored-by: CGsama <CGsama@outlook.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10496
Co-authored-by: コルセット姫@がんばらない <cgsama@noreply.codeberg.org>
Co-committed-by: コルセット姫@がんばらない <cgsama@noreply.codeberg.org>
2023-07-15 22:56:09 +00:00
ThatOneCalculator
bd57b95a97
docs: 💡 going past DB_MAX_NOTE_TEXT_LENGTH 2023-07-15 15:32:39 -07:00
ThatOneCalculator
49b0a52f9f
fix: 🔧 max post length 100000
Pleroma doesn't accept >100K (ref: https://blob.cat/objects/82f33d96-534f-45ee-902a-f77c2723db8b)
2023-07-15 14:50:23 -07:00
ThatOneCalculator
ff08ec77ee
we be renamin 2023-07-15 14:21:17 -07:00
ThatOneCalculator
bb22a671b0
Merge branch 'develop' into rebrand 2023-07-15 14:15:01 -07:00
ThatOneCalculator
d64389543c
fix: 🔒 prevent potential SSRF through media proxy 2023-07-15 14:13:21 -07:00
ThatOneCalculator
9c2264fb8e
fix: 🐛 allow up to 1024 chars for SMTP login
Closes #10472
2023-07-15 00:19:09 -07:00
ThatOneCalculator
63b3666b71
chore: 🎨 format 2023-07-15 00:06:53 -07:00
ThatOneCalculator
9f38f8bbca
refactor: 🗑️ deprecate DB_MAX_NOTE_TEXT_LENGTH 2023-07-15 00:06:42 -07:00
ThatOneCalculator
e3b8c05e47
docs: 📝 descriptions for notes/children+conversation endpoints 2023-07-14 23:16:50 -07:00
ThatOneCalculator
c467db2ea2
refactor: ♻️ correct params for notes/children+conversion 2023-07-14 23:13:32 -07:00
ThatOneCalculator
c99480529f
feat: seperate sponsors and patrons 2023-07-14 23:03:07 -07:00
ThatOneCalculator
7be2b16215
remove trailing slash 2023-07-14 18:38:53 -07:00
PrivateGER
c9c183fec0 formattin~ 2023-07-15 02:15:10 +02:00
PrivateGER
f1c18e0b09 Allow relevancy sorting of Meilisearch 2023-07-15 02:10:42 +02:00
ThatOneCalculator
102b57424e
Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-07-14 16:51:31 -07:00
ThatOneCalculator
8f650e6e3a
refactor: 🚸 filter out https on recommended instances 2023-07-14 16:51:21 -07:00
freeplay
f67ea7a609 fix: Follow Request labeling
resolves #10368
2023-07-14 00:17:20 -04:00
ThatOneCalculator
133c9f775c
Revert "refactor: use blurhash-as for encoding and decoding"
This reverts commit ae059881fb.
2023-07-13 19:06:57 -07:00
ThatOneCalculator
ae059881fb
refactor: use blurhash-as for encoding and decoding 2023-07-13 19:00:26 -07:00
ThatOneCalculator
cd5c4ff191
refactor: ♻️ no autobind 2023-07-13 17:52:19 -07:00
ThatOneCalculator
cb561ddef8
fix: 💄 different default font if cjk 2023-07-13 17:11:59 -07:00
Namekuji
3fc381c050
refactor: use copy_limit if greater than 0 2023-07-13 18:19:08 -04:00
naskya
22102d6c38
fix 2023-07-13 16:10:13 +00:00
naskya
8ad603cba8 Merge branch 'develop' into chore/findOneBy-exist 2023-07-13 15:44:42 +00:00
naskya
ae70f02bb0
More replacements which aren't covered by f4870d6e 2023-07-13 15:31:40 +00:00
naskya
65dcff4a66
Stop using the name 'exist' if it's not for existence check 2023-07-13 15:28:44 +00:00
okayurisotto
f4870d6e4a
refactor(backend): Use exist to check existence
* refactor(backend): 存在確認の`findOneBy`を`exist`に置き換え

* cleanup
2023-07-13 15:08:36 +00:00
naskya
c9448bb281 fix #10483 (2) 2023-07-13 13:25:45 +00:00
naskya
f451e97505 fix #10483 2023-07-13 13:22:50 +00:00
ThatOneCalculator
64322721b6
refactor: ♻️ substr -> slice 2023-07-12 23:56:22 -07:00
ThatOneCalculator
9a68e77f92
refactor: add aria labels to buttons 2023-07-12 23:22:58 -07:00
DVD
c5eeb5e583
Fix CW Import 2023-07-13 09:07:35 +08:00
naskya
6129d6eddb chore: forgot to remove a debug print stmt? 2023-07-13 00:45:26 +00:00
ThatOneCalculator
6b5d9f7454
fix: 🐛 give donation link in non-admin meta 2023-07-12 00:54:28 -07:00
ThatOneCalculator
acb6edef3c
refactor: ♻️ donation link logic, add link to /about, fix typo 2023-07-11 23:42:59 -07:00
ThatOneCalculator
04224bfc66
feat: Donation pop-up with optional admin link
Co-authored-by: Syuilo <syuilotan@yahoo.co.jp>
2023-07-11 23:23:44 -07:00
ThatOneCalculator
36ef3600c3
build: ⬆️ up backend deps 2023-07-10 21:29:01 -07:00
ThatOneCalculator
8d9154c8c0
perf: use fast-blurhash for blurhash decoding, up deps 2023-07-10 21:09:07 -07:00
PrivateGER
b46d437971 Fix Postgres error loop when indexing notes 2023-07-10 23:44:31 +02:00
Laura Hausmann
3e1b112f92
Revert "Revert "[mastodon-client] send actual default post privacy instead of fallback value""
This reverts commit a441cc6067.
2023-07-10 18:58:15 +02:00
Namekuji
5291fd4f10
fix: add db to redis uri 2023-07-10 03:54:28 -04:00
Namekuji
b9794dd625
make unused dependencies optional 2023-07-10 03:48:46 -04:00