长毛象小站的实用修改:让“ #探索 ”( #expolore )不再空白。
Mastodon的探索功能是为数不多的“算法”。如果某小站的跨实例沟通能力还不是很强的话,会导致这个页面经常是空白的。
简单来说这个算法就是程序 https://github.com/mastodon/mastodon/blob/main/app/models/trends/statuses.rb 文件中开头的几个参数(threshold, score_halflife, decay_threshold)在控制。
一个满足条件(公开,etc)的嘟文点赞数和转发数相加就是他的原始分数,如果超过了threshold那么就会经过一个score_halflife半衰期衰减算法,如果之后分数仍高于decay_threshold那么就符合条件了。
那么对于小站来说,可以把这几个参数酌情改小。例如附图所示。改完之后重启Mastodon服务就成功啦!