• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

kamysheblid/mastodon_max_characters: Change mastodon MAX_CHARS per status

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

kamysheblid/mastodon_max_characters

开源软件地址(OpenSource Url):

https://github.com/kamysheblid/mastodon_max_characters

开源编程语言(OpenSource Language):

Shell 100.0%

开源软件介绍(OpenSource Introduction):

Mastodon Max Character Fix

This is a simple shell script that will change the number of maximum characters to whatever you want.

How to Use

You should have some kind of shell language like bash, which you already have if you are on linux or mac.

Simply run the shell script sh chars_fix.sh MAX_CHARS MASTODON_DIR

Step 1: Run the Script

You will need to tell it your mastodon directory and the number of characters you want. So let's say my mastodon directory is /home/MyUsername/mastodon and the number of characters I want is 2000 then I simply:

sh chars_fix.sh 2000 /home/MyUsername/mastodon

If you leave the MASTODON_DIR option empty then the script will use your current directory.

Step 2: Recompile Mastodon

After you edit the file, you will need to recompile the program, so you go into your mastodon folder and do RAILS_ENV=production bundle exec rails assets:precompile to recompile everything.

Step 3: Restart the Server

Until you restart the server, you won't notice any difference. You probably have a systemd service file, so you simply do sudo systemctl restart mastodon-web and it should restart it.

If you do not have systemd, then you might have it in your /etc/init.d folder, but you will have to find out what it is called and then to sudo /etc/init.d/mastodon.sh restart or something like that.

Todo

  • Fix for windows users, assuming it doesnt work for them.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
onsen-ui/mstdn-api: Mastodon API Library发布时间:2022-08-17
下一篇:
shibafu528/Yukari: Twitter/Mastodon Client for Android发布时间:2022-08-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap