Commit Graph

17 Commits (90917b305a0389f7c851059331852006a4233094)

Author SHA1 Message Date
Claire 5159ba26e4
Fix error when rendering public pages with media attachments ()
* Add tests

* Fix error when rendering public pages with media attachments

* Add tests

* Fix tests

* Please CodeClimate
ThibG ac8a788370
Fix functional user requirements in whitelist mode ()
Fixes 
Eugen Rochko 988b0493fe
Add more tests for ActivityPub controllers ()
Eugen Rochko de5305a3a5
Fix redirecting non-functional accounts on public pages ()
Fix 
Eugen Rochko 24552b5160
Add whitelist mode ()
Eugen Rochko 63c7fe8e48
Refactor controllers for statuses, accounts, and more ()
Eugen Rochko f7f23b4a19
Add audio uploads ()
* Add audio uploads

Fix 

Accept uploads of OGG, WAV, FLAC, OPUS and MP3 files, and converts
them to OGG. Media attachments get a new `audio` type. In the UI,
audio uploads are displayed identically to video uploads.

* Improve code style
Eugen Rochko 8514ef723c
Fix login sometimes redirecting to paths that are not pages ()
Fix 
jomo 2c1a6f746f fix CSP / X-Frame-Options for media embeds ()
Eugen Rochko 9dbae6e8a1
Save video metadata and improve video OpenGraph tags ()
* Save metadata from video attachments, put correct dimensions into OG tags

* Add twitter:player for videos

* Fix code style and test
Jack Jennings 3a2003ba86 Extract authorization policy for viewing statuses ()
Matt Jankowski cc1361c149 Media controller specs ()
* Add spec for media controller

* Add MediaAttachment.attached scope

* Simplify methods in media controller
Eugen Rochko 7b9f8766e8 Fix - Generate random unique 14-byte (19 characters) shortcodes
for local attachments, use them in URLs. Check status privacy
before redirecting to actual file.
Eugen Rochko e09d3a2c66 Fix - use window.location hack to let people login from sandboxed iOS homescreen
Eugen Rochko fdc17bea58 Fix rubocop issues, introduce usage of frozen literal to improve performance
Eugen Rochko c6d893a71d Uploading/undoing media modifies status text. Also: status text trimmed before validation
Eugen Rochko bd5ad304ba Adding media controller, 1 webm/compose form allowed, previews generated