diff --git a/charlimit_1000.diff b/charlimit_1000.diff new file mode 100644 index 0000000..a4b0a47 --- /dev/null +++ b/charlimit_1000.diff @@ -0,0 +1,35 @@ +diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js +index e641d59f4..bacae6ed6 100644 +--- a/app/javascript/mastodon/features/compose/components/compose_form.js ++++ b/app/javascript/mastodon/features/compose/components/compose_form.js +@@ -90,7 +90,7 @@ class ComposeForm extends ImmutablePureComponent { + const fulltext = this.getFulltextForCharacterCounting(); + const isOnlyWhitespace = fulltext.length !== 0 && fulltext.trim().length === 0; + +- return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (isOnlyWhitespace && !anyMedia)); ++ return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 1000 || (isOnlyWhitespace && !anyMedia)); + }; + + handleSubmit = (e) => { +@@ -280,7 +280,7 @@ class ComposeForm extends ImmutablePureComponent { + + +
+- ++ +
+ + +diff --git a/app/validators/status_length_validator.rb b/app/validators/status_length_validator.rb +index e107912b7..a4efdfed0 100644 +--- a/app/validators/status_length_validator.rb ++++ b/app/validators/status_length_validator.rb +@@ -1,7 +1,7 @@ + # frozen_string_literal: true + + class StatusLengthValidator < ActiveModel::Validator +- MAX_CHARS = 500 ++ MAX_CHARS = 1000 + URL_PLACEHOLDER_CHARS = 23 + URL_PLACEHOLDER = 'x' * 23 + diff --git a/custom-favicon.sh b/custom-favicon.sh new file mode 100755 index 0000000..c00ef13 --- /dev/null +++ b/custom-favicon.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +SOURCE="/home/mastodon/custom_mastodon/favicon.png" + +cd /home/mastodon/live/app/javascript/icons + +for prefix in android-chrome apple-touch-icon favicon +do + for icon in $prefix-* + do + suffix=${icon#$prefix-} + resolution=${suffix%.png} + echo -n "." + convert -scale $resolution ${SOURCE} "${icon}" + done +done +convert -scale 48x48 ${SOURCE} /home/mastodon/live/public/favicon.ico +echo " done" diff --git a/custom.css b/custom.css new file mode 100644 index 0000000..c4f0197 --- /dev/null +++ b/custom.css @@ -0,0 +1,7 @@ +.hashtag, .account__header__content a, .status__content a { + color: #c17cfb; +} + +.drawer, .column { + flex: 1 1 auto; +} diff --git a/favicon.png b/favicon.png new file mode 100644 index 0000000..920dc3c Binary files /dev/null and b/favicon.png differ