]> cat aescling's git repositories - mastodon.git/commit
Added env variables for max image and video size.
authorLady Lumb <42786600+LadyLumb@users.noreply.github.com>
Fri, 31 May 2019 08:57:08 +0000 (01:57 -0700)
committerThibG <thib@sitedethib.com>
Sun, 2 Jun 2019 12:38:13 +0000 (14:38 +0200)
commitf9514b08f2ec486df23e2cdb400a1c9c3a11e549
tree85ed1b261471786251abe82f176289489bb60a24
parent5b929106647a6aac222c82ffe0d2c5c7bdf2d463
Added env variables for max image and video size.

I changed the IMAGE_LIMIT and VIDEO_LIMIT variables to read from the env, or use default if not set in the env, to make it easier to change this on an instance by instance basis and make it persistent across updates.
app/models/media_attachment.rb