custom-char-limit #1

Open
Archos wants to merge 3 commits from custom-char-limit into master

View File

@@ -90,8 +90,14 @@ RUN ldconfig && \
ffmpeg -version && \ ffmpeg -version && \
ffprobe -version ffprobe -version
RUN curl -L https://github.com/tootsuite/mastodon/archive/v${MASTODON_VERSION}.tar.gz | tar -xz --strip-components 1 -f - && \ # Download Mastodon source
bundle config --local set deployment 'true' && \ RUN curl -L https://github.com/tootsuite/mastodon/archive/v${MASTODON_VERSION}.tar.gz | tar -xz --strip-components 1 -f -
RUN sed -i 's/MAX_CHARS = 500/MAX_CHARS = 2500/g' app/validators/status_length_validator.rb && \
sed -i "s/max_characters'], 500)/max_characters'], 2500)/g" app/javascript/mastodon/features/compose/containers/compose_form_container.js
# Install Ruby dependencies
RUN bundle config --local set deployment 'true' && \
bundle config --local set without 'development test' && \ bundle config --local set without 'development test' && \
bundle config --local set silence_root_warning true && \ bundle config --local set silence_root_warning true && \
bundle install && \ bundle install && \
@@ -100,7 +106,6 @@ RUN curl -L https://github.com/tootsuite/mastodon/archive/v${MASTODON_VERSION}.t
RUN corepack enable && \ RUN corepack enable && \
corepack prepare --activate corepack prepare --activate
RUN yarn workspaces focus --production @mastodon/mastodon RUN yarn workspaces focus --production @mastodon/mastodon
RUN yarn install RUN yarn install
@@ -134,3 +139,4 @@ RUN ln -fs /app/data/system /app/code/public/system
COPY start.sh cleanup.sh config.sh env.template cache-env.sh.template /app/pkg/ COPY start.sh cleanup.sh config.sh env.template cache-env.sh.template /app/pkg/
CMD [ "/app/pkg/start.sh" ] CMD [ "/app/pkg/start.sh" ]