Matthias Ahouansou
3171b779c6
feat(media): save user id of uploader
10 months ago
Matthias Ahouansou
70d7f77363
feat(media): use file's sha256 for on-disk name & make directory configurable
...
In addition, metadata about the file, such as creation time, last access, and
file size, are stored in the database
10 months ago
Timo Kösters
65fe6b0ab5
fix: Empty content dispositions could create problems
1 year ago
avdb13
423b0928d5
use ruma content disposition type in place of string
...
Co-Authored-By: Matthias Ahouansou <matthias@ahouansou.cz>
2 years ago
Timo Kösters
d5b4754cf4
0 errors left!
3 years ago
Timo Kösters
a4637e2ba1
cargo fmt
3 years ago
Timo Kösters
44fe6d1554
127 errors left
3 years ago
Timo Kösters
cff52d7ebb
messing around with arcs
3 years ago
Timo Kösters
face766e0f
messing with trait objects
3 years ago
Timo Kösters
bd8b616ca0
Fixed more compile time errors
3 years ago
Nyaaori
232978087a
refactor: prepare database/key_value/media.rs from service/media.rs
3 years ago
Nyaaori
d024d205c0
refactor: prepare service/media/mod.rs from service/media.rs
3 years ago
Timo Kösters
057f8364cc
fix: some compile time errors
...
Only 174 errors left!
3 years ago
Timo Kösters
025b64befc
refactor: renames and split room.rs
4 years ago
Andrej Kacian
529e88c7f9
Do not copy mxc string unnecessarily in db.get_thumbnail()
4 years ago
Jonas Platte
d68c93b5fa
Clean up (mostly automated with cargo clippy --fix)
5 years ago
Timo Kösters
bd63797213
improvement: make better use of sqlite connections
5 years ago
Jonathan de Jong
e1b89c1248
apply lint suggestions and version bump
5 years ago
Jonas Platte
f3e630c064
Fix lots of clippy lints
5 years ago
hamidreza kalbasi
2385bd1cfd
add migrations
5 years ago
hamidreza kalbasi
affa124864
create media folder in init
5 years ago
hamidreza kalbasi
ff841b73c5
use .keys() and remove unneccery .to_vec()
5 years ago
hamidreza kalbasi
804105479c
fix fmt and clippy warnings
5 years ago
hamidreza kalbasi
972caacdc2
put media in filesystem
5 years ago
Timo Kösters
d0ee823254
feat: swappable database backend
5 years ago
Timo Kösters
88cf043f94
fix: deactivate accounts that should be deactivated
5 years ago
Timo Kösters
16eed1d8c2
chore: get rid of warnings
5 years ago
Timo Kösters
46d8f36a2c
fix: media thumbnail calculation and appservice detection
5 years ago
Timo Kösters
6e5b35ea92
feat: implement appservices
...
this also reverts some stateres changes
5 years ago
Devin Ragotzy
b6d721374f
Have Media db return optional content_type, conversion fixes
5 years ago
Devin Ragotzy
234b226468
Fix review issues, Remove EventHash's in prev/auth_events in StateEvent
...
The latest state-res crate uses ruma's PduRoomV3 PDU's which don't have
tuples of (EventId, EventHashs) like previous versions did (this was
left from rebasing onto master). The Media DB
now takes an optional content_type like the updated ruma structs.
5 years ago
Timo Kösters
9f8cffcd22
Admin room improvements
5 years ago
Timo Kösters
6bb8284fc0
improvement: correct thumbnailing algorithm
5 years ago
Timo Kösters
aa5e9e607e
feat: download media and thumbnails over federation
6 years ago
Timo Kösters
1e8fbd8d50
Update ruma version
6 years ago
Devin Ragotzy
1c6f211933
Create media::FileMeta to represent a file and meta data
6 years ago
Devin Ragotzy
62df9ca580
Fix all clippy warnings, shorten line len in client_server
6 years ago
timokoesters
56d4742201
improvement: log bad database errors automatically
6 years ago
timokoesters
2368a90584
refactor: better error handling
6 years ago
timokoesters
ada260bf42
fix: use png for thumbnails
6 years ago
timokoesters
d544d28b6e
feat: image thumbnails
6 years ago
timokoesters
821c608c6a
feat: media
6 years ago