Include max number of blogs in nodeinfo

This commit is contained in:
Matt Baer 2018-12-17 01:27:04 -05:00
parent 11de25237d
commit 13bf5b6638
2 changed files with 3 additions and 2 deletions

View file

@ -1,9 +1,9 @@
package writefreely
import (
"github.com/writeas/go-nodeinfo"
"github.com/writeas/web-core/log"
"github.com/writeas/writefreely/config"
"github.com/writefreely/go-nodeinfo"
"strings"
)
@ -38,6 +38,7 @@ func nodeInfoConfig(db *datastore, cfg *config.Config) *nodeinfo.Config {
GitHub: "https://github.com/writeas/writefreely",
Follow: "https://writing.exchange/@write_as",
},
MaxBlogs: cfg.App.MaxBlogs,
},
Protocols: []nodeinfo.NodeProtocol{
nodeinfo.ProtocolActivityPub,

View file

@ -2,10 +2,10 @@ package writefreely
import (
"github.com/gorilla/mux"
"github.com/writeas/go-nodeinfo"
"github.com/writeas/go-webfinger"
"github.com/writeas/web-core/log"
"github.com/writeas/writefreely/config"
"github.com/writefreely/go-nodeinfo"
"net/http"
"strings"
)