Include max number of blogs in nodeinfo

embedded-data
Matt Baer 6 years ago
parent 11de25237d
commit 13bf5b6638
  1. 3
      nodeinfo.go
  2. 2
      routes.go

@ -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,

@ -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"
)

Loading…
Cancel
Save